/* ─────────────────────────────────────────────
   Cookie Consent Banner – Digitality
   Card-style, Consent Mode v2 + GTM
───────────────────────────────────────────── */

/* ── Banner wrapper (overlay + card) ── */
#dc-cc-banner {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    padding: 1.5rem;
}
#dc-cc-banner[hidden] { display: none; }

.dc-cc-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(234, 114, 3, .08), transparent 30%),
        rgba(0, 0, 0, .68);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* ── Card ── */
.dc-cc-box {
    position: relative;
    background: linear-gradient(180deg, rgba(19, 19, 19, .98) 0%, rgba(10, 10, 10, .99) 100%);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 2px;
    padding: 2.1rem 2.1rem 1.8rem;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow:
        0 28px 80px rgba(0, 0, 0, .58),
        inset 0 1px 0 rgba(255, 255, 255, .04);
    animation: dcccSlide .3s cubic-bezier(.16, 1, .3, 1);
}
.dc-cc-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2.1rem;
    width: 4.5rem;
    height: 2px;
    background: #EA7203;
}

@keyframes dcccSlide {
    from { opacity: 0; transform: translateY(1.5rem); }
    to   { opacity: 1; transform: translateY(0); }
}
.dc-cc-title {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0;
}

.dc-cc-desc {
    color: rgba(255, 255, 255, .64);
    font-size: .84rem;
    line-height: 1.7;
    margin: 0;
}
.dc-cc-desc a { color: #EA7203; text-decoration: none; }
.dc-cc-desc a:hover { text-decoration: underline; }

/* ── Buttons ── */
.dc-cc-btn {
    height: 3.05rem;
    padding: 0 1.5rem;
    border-radius: 2px;
    font-family: 'Outfit', sans-serif;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    cursor: pointer;
    border: none;
    transition: background .2s, opacity .2s, color .2s, border-color .2s, transform .2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dc-cc-btn--full { width: 100%; }

.dc-cc-btn--primary {
    background: #EA7203;
    color: #fff;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .18);
}
.dc-cc-btn--primary:hover { background: #d4670a; transform: translateY(-1px); }

.dc-cc-btn--outline {
    background: rgba(255, 255, 255, .03);
    color: rgba(255, 255, 255, .82);
    border: 1px solid rgba(255, 255, 255, .12);
}
.dc-cc-btn--outline:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.dc-cc-reject-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, .16);
    font-family: 'Outfit', sans-serif;
    font-size: .72rem;
    cursor: pointer;
    padding: .25rem 0;
    text-align: center;
    width: 100%;
    transition: color .2s, opacity .2s;
}
.dc-cc-reject-link:hover { color: rgba(255, 255, 255, .28); }

/* ── Settings modal ── */
#dc-cc-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .74);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1rem;
}
#dc-cc-modal[hidden] { display: none; }

.dc-cc-modal-box {
    position: relative;
    background: linear-gradient(180deg, rgba(19, 19, 19, .99) 0%, rgba(11, 11, 11, .99) 100%);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 2px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 28px 88px rgba(0, 0, 0, .65),
        inset 0 1px 0 rgba(255, 255, 255, .04);
}
.dc-cc-modal-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    width: 4rem;
    height: 2px;
    background: #EA7203;
}

.dc-cc-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.dc-cc-modal-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -.02em;
}
.dc-cc-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, .35);
    cursor: pointer;
    font-size: 1.1rem;
    padding: .25rem;
    line-height: 1;
    transition: color .15s;
}
.dc-cc-modal-close:hover { color: #EA7203; }

.dc-cc-modal-body {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dc-cc-modal-intro {
    color: rgba(255, 255, 255, .58);
    font-size: .8rem;
    line-height: 1.6;
    margin: 0 0 .45rem;
}

.dc-cc-category {
    background: none;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 1rem 0;
}
.dc-cc-category:first-of-type { padding-top: 0; border-top: none; }
.dc-cc-category-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    justify-content: space-between;
}
.dc-cc-category strong {
    display: block;
    color: #fff;
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: .2rem;
}
.dc-cc-category p {
    color: rgba(255, 255, 255, .52);
    font-size: .78rem;
    line-height: 1.55;
    margin: 0;
}

.dc-cc-always-on {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #EA7203;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Toggle switch ── */
.dc-cc-toggle {
    position: relative;
    display: inline-block;
    width: 2.75rem;
    height: 1.5rem;
    flex-shrink: 0;
}
.dc-cc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.dc-cc-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .15);
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s;
}
.dc-cc-slider::before {
    content: '';
    position: absolute;
    width: 1.1rem;
    height: 1.1rem;
    left: .2rem;
    top: .2rem;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.dc-cc-toggle input:checked + .dc-cc-slider { background: #EA7203; }
.dc-cc-toggle input:checked + .dc-cc-slider::before { transform: translateX(1.25rem); }

.dc-cc-modal-foot {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    padding: 1.25rem 1.5rem;
    margin-top: .5rem;
    border-top: 1px solid rgba(255, 255, 255, .07);
}
.dc-cc-modal-reject-link {
    background: none;
    font-family: inherit;
    font-size: .72rem;
    cursor: pointer;
    text-align: center;
    padding: .25rem 0;
    color: rgba(255, 255, 255, .16);
    border: none;
    transition: color .15s;
}
.dc-cc-modal-reject-link:hover {
    color: rgba(255, 255, 255, .28);
}

/* ── Mobile ── */
@media (max-width: 500px) {
    .dc-cc-box {
        padding: 1.65rem 1.25rem 1.3rem;
        border-radius: 4px 4px 0 0;
        max-width: 100%;
    }
    .dc-cc-btn { font-size: .75rem; }
    #dc-cc-banner { padding: 0; align-items: flex-end; }
    .dc-cc-box::before {
        left: 1.25rem;
    }
    .dc-cc-modal-box::before {
        left: 1.25rem;
    }
}
