/* Banner consimtamant cookie-uri - Urban Roleplay V */

#urp-cookie-banner,
#urp-cookie-prefs {
    font-family: Poppins, system-ui, -apple-system, Segoe UI, sans-serif;
    box-sizing: border-box;
}

#urp-cookie-banner *,
#urp-cookie-prefs * {
    box-sizing: border-box;
}

#urp-cookie-banner {
    position: fixed;
    z-index: 99999;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 940px;
    background: #1b1a23;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
    padding: 22px 26px;
    color: #cfd6e4;
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    gap: 22px;
    align-items: center;
    flex-wrap: wrap;
}

#urp-cookie-banner .urp-cc-text {
    flex: 1 1 380px;
    min-width: 260px;
}

#urp-cookie-banner strong {
    color: #fff;
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

#urp-cookie-banner a,
#urp-cookie-prefs a {
    color: #FFCC00;
}

.urp-cc-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.urp-cc-btn {
    border: 0;
    border-radius: 9px;
    padding: 11px 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.urp-cc-btn.primary {
    background: #FFCC00;
    color: #17161d;
}

.urp-cc-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #E3E9F1;
}

.urp-cc-btn.link {
    background: transparent;
    color: #a1a9c0;
    text-decoration: underline;
    padding-left: 8px;
    padding-right: 8px;
}

.urp-cc-btn:hover {
    filter: brightness(1.12);
}

/* Modal preferinte */
#urp-cookie-prefs {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#urp-cookie-prefs .urp-cc-modal {
    background: #1b1a23;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    max-width: 620px;
    width: 100%;
    max-height: 86vh;
    overflow-y: auto;
    padding: 30px;
    color: #cfd6e4;
    font-size: 14px;
    line-height: 1.6;
}

#urp-cookie-prefs h2 {
    color: #fff;
    margin: 0 0 6px;
    font-size: 21px;
}

.urp-cc-cat {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
}

.urp-cc-cat-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.urp-cc-cat-head span {
    color: #fff;
    font-weight: 600;
}

.urp-cc-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex: 0 0 44px;
}

.urp-cc-switch input {
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.urp-cc-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    pointer-events: none;
    transition: background .2s;
}

.urp-cc-slider::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
}

.urp-cc-switch input:checked+.urp-cc-slider {
    background: #FFCC00;
}

.urp-cc-switch input:checked+.urp-cc-slider::before {
    transform: translateX(20px);
}

.urp-cc-switch input:disabled+.urp-cc-slider {
    opacity: .55;
}

@media (max-width: 620px) {
    #urp-cookie-banner {
        bottom: 0;
        border-radius: 16px 16px 0 0;
        width: 100%;
    }

    .urp-cc-actions {
        width: 100%;
    }

    .urp-cc-btn {
        flex: 1 1 auto;
    }
}
