/* Webbly – Cookie Consent UI. Uses the site's design tokens (with fallbacks); all selectors are prefixed cc-. */
.cc-banner,
.cc-modal {
    --cc-bg: var(--bg2, #070B1B);
    --cc-glass: rgba(10, 15, 36, .86);
    --cc-bd: var(--bd, rgba(130, 150, 255, .18));
    --cc-t1: var(--t1, #F5F7FF);
    --cc-t2: var(--t2, #A5B0C8);
    --cc-t3: var(--t3, #75829E);
    --cc-cy: var(--cy, #69E6FF);
    --cc-g: var(--g, linear-gradient(110deg, #00A8FF, #703BFF 60%, #A855F7));
    font: 400 15px/1.55 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
    color: var(--cc-t1);
    box-sizing: border-box
}

.cc-banner *,
.cc-modal * {
    box-sizing: border-box
}

.cc-banner[hidden] {
    display: none
}

/* ---------- banner ---------- */
.cc-banner {
    position: fixed;
    z-index: 95;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: min(1100px, calc(100% - 24px));
    transform: translate(-50%, 24px);
    opacity: 0;
    transition: opacity .45s ease, transform .55s cubic-bezier(.2, .8, .2, 1)
}

.cc-banner.cc-in {
    transform: translate(-50%, 0);
    opacity: 1
}

.cc-banner__in {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 22px;
    align-items: center;
    padding: 22px 24px;
    border-radius: 22px;
    background: var(--cc-glass);
    border: 1px solid var(--cc-bd);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 30px 70px -25px #000, 0 0 40px -18px rgba(112, 59, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
    overflow: hidden
}

/* thin gradient hairline on top edge – echoes the scroll-progress bar */
.cc-banner__in::before {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    top: 0;
    height: 1px;
    background: var(--cc-g);
    opacity: .7
}

.cc-banner__ico {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: linear-gradient(135deg, rgba(8, 123, 255, .25), rgba(168, 85, 247, .25));
    border: 1px solid var(--cc-bd)
}

.cc-banner__ico svg {
    width: 24px;
    height: 24px;
    stroke: var(--cc-cy);
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round
}

.cc-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--cc-t1)
}

.cc-desc {
    margin: 0;
    color: var(--cc-t2);
    font-size: 14.5px;
    max-width: 68ch
}

.cc-a {
    color: var(--cc-cy);
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap
}

.cc-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end
}

/* ---------- buttons (accept / reject deliberately share one style – equal prominence) ---------- */
.cc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 20px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    color: var(--cc-t1);
    border: 1px solid var(--cc-bd);
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .25s, border-color .25s, box-shadow .3s, transform .2s
}

.cc-btn--main {
    background: rgba(112, 59, 255, .2);
    border-color: rgba(168, 85, 247, .45)
}

.cc-btn--main:hover {
    background: rgba(112, 59, 255, .32);
    border-color: rgba(168, 85, 247, .7);
    box-shadow: 0 12px 30px -10px rgba(112, 59, 255, .6)
}

.cc-btn--ghost:hover {
    border-color: var(--cc-cy);
    box-shadow: 0 12px 30px -10px rgba(0, 168, 255, .45)
}

.cc-btn:active {
    transform: translateY(1px)
}

.cc-btn:focus-visible,
.cc-a:focus-visible,
.cc-x:focus-visible,
.cc-linkbtn:focus-visible,
.cc-more summary:focus-visible,
.cc-link:focus-visible {
    outline: 2px solid var(--cc-cy);
    outline-offset: 3px;
    border-radius: 999px
}

.cc-a:focus-visible,
.cc-linkbtn:focus-visible,
.cc-more summary:focus-visible,
.cc-link:focus-visible {
    border-radius: 6px
}

/* ---------- settings dialog ---------- */
.cc-modal {
    width: min(700px, calc(100% - 24px));
    max-height: min(88svh, 820px);
    margin: auto;
    padding: 0;
    border: 1px solid var(--cc-bd);
    border-radius: 22px;
    background: var(--cc-bg);
    box-shadow: 0 40px 90px -30px #000, 0 0 60px -25px rgba(112, 59, 255, .6);
    overflow: hidden;
    opacity: 0;
    transform: translateY(14px) scale(.98)
}

.cc-modal[open] {
    display: flex;
    animation: cc-pop .4s cubic-bezier(.2, .8, .2, 1) forwards
}

/* fallback for browsers without <dialog> support */
.cc-modal[open]:not(:modal) {
    position: fixed;
    inset: 0;
    z-index: 120
}

.cc-modal::backdrop {
    background: rgba(2, 3, 10, .72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px)
}

@keyframes cc-pop {
    to {
        opacity: 1;
        transform: none
    }
}

.cc-modal__box {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: inherit;
    min-height: 0
}

.cc-modal__head {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    padding: 26px 64px 20px 26px;
    border-bottom: 1px solid var(--cc-bd);
    background: radial-gradient(ellipse at 85% -40%, rgba(112, 59, 255, .25), transparent 60%)
}

.cc-x {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--cc-bd);
    background: rgba(7, 11, 27, .85);
    color: var(--cc-t1);
    font-size: 18px;
    cursor: pointer;
    transition: border-color .2s
}

.cc-x:hover {
    border-color: var(--p2, #A855F7)
}

.cc-modal__body {
    padding: 8px 26px 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
    min-height: 0
}

.cc-cat {
    padding: 18px 0;
    border-bottom: 1px solid var(--cc-bd)
}

.cc-cat__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px
}

.cc-cat__label {
    font-weight: 600;
    font-size: 16px;
    color: var(--cc-t1);
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0
}

.cc-badge {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--cc-cy);
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(105, 230, 255, .35)
}

.cc-cat__desc {
    margin: 6px 0 0;
    color: var(--cc-t2);
    font-size: 14.5px
}

/* switch */
.cc-switch {
    position: relative;
    flex: 0 0 auto;
    width: 50px;
    height: 28px
}

.cc-switch input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1
}

.cc-switch input:disabled {
    cursor: not-allowed
}

.cc-switch__track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(117, 130, 158, .28);
    border: 1px solid var(--cc-bd);
    transition: background .25s, border-color .25s
}

.cc-switch__track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--cc-t1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1)
}

.cc-switch input:checked+.cc-switch__track {
    background: var(--cc-g);
    border-color: transparent
}

.cc-switch input:checked+.cc-switch__track::after {
    transform: translateX(22px)
}

.cc-switch input:disabled+.cc-switch__track {
    opacity: .55
}

.cc-switch input:focus-visible+.cc-switch__track {
    outline: 2px solid var(--cc-cy);
    outline-offset: 3px
}

/* details */
.cc-more {
    margin-top: 10px
}

.cc-more summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    list-style: none;
    font-size: 13.5px;
    color: var(--cc-cy);
    padding: 4px 0
}

.cc-more summary::-webkit-details-marker {
    display: none
}

.cc-more summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .25s
}

.cc-more[open] summary::after {
    transform: rotate(225deg) translate(-2px, 0)
}

.cc-items {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: grid;
    gap: 8px
}

.cc-items li {
    display: grid;
    gap: 2px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--cc-bd);
    background: rgba(4, 6, 18, .5);
    font-size: 13.5px;
    color: var(--cc-t2);
    overflow-wrap: anywhere
}

.cc-items b {
    color: var(--cc-t1);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 13px;
    font-weight: 600
}

.cc-items em {
    font-style: normal;
    color: var(--cc-t3)
}

.cc-empty {
    margin: 10px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px dashed var(--cc-bd);
    font-size: 13.5px;
    color: var(--cc-t3)
}

.cc-status {
    margin: 16px 0 0;
    font-size: 13.5px;
    color: var(--cc-t3)
}

.cc-status b {
    color: var(--cc-t2);
    font-weight: 600
}

.cc-linkbtn {
    display: inline;
    margin-top: 6px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: var(--cc-cy);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer
}

.cc-modal__foot {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    padding: 16px 26px 22px;
    border-top: 1px solid var(--cc-bd);
    background: rgba(4, 6, 18, .45)
}

.cc-modal__foot .cc-btn {
    white-space: normal;
    text-align: center
}

html.cc-lock,
html.cc-lock body {
    overflow: hidden
}

/* ---------- footer trigger (looks like the surrounding footer links) ---------- */
.cc-link {
    display: inline;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
    transition: color .2s
}

.cc-link:hover {
    color: var(--cy, #69E6FF)
}

/* ---------- cookie table used in the privacy policy ---------- */
.cc-table-wrap {
    overflow-x: auto;
    margin: 16px 0;
    border: 1px solid var(--bd, rgba(130, 150, 255, .18));
    border-radius: 14px
}

.cc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    min-width: 560px
}

.cc-table th,
.cc-table td {
    text-align: left;
    vertical-align: top;
    padding: 12px 14px;
    border-bottom: 1px solid var(--bd, rgba(130, 150, 255, .18));
    color: var(--t2, #A5B0C8)
}

.cc-table th {
    color: var(--t1, #F5F7FF);
    font-weight: 600;
    background: rgba(112, 59, 255, .1)
}

.cc-table tr:last-child td {
    border-bottom: 0
}

.cc-table code {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 13px;
    color: var(--t1, #F5F7FF)
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
    .cc-banner__in {
        grid-template-columns: auto 1fr;
        gap: 16px 18px
    }

    .cc-actions {
        grid-column: 1 / -1;
        justify-content: stretch
    }

    .cc-actions .cc-btn {
        flex: 1 1 0
    }
}

@media (max-width: 640px) {
    .cc-banner {
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        width: calc(100% - 20px)
    }

    .cc-banner__in {
        grid-template-columns: 1fr;
        padding: 20px 18px 18px;
        max-height: calc(100svh - 120px);
        overflow-y: auto
    }

    .cc-banner__in>.cc-banner__ico {
        display: none
    }

    .cc-title {
        font-size: 17px
    }

    .cc-actions {
        flex-direction: column;
        gap: 8px
    }

    .cc-actions .cc-btn {
        width: 100%;
        flex: none
    }

    .cc-modal {
        width: calc(100% - 16px);
        max-height: calc(100svh - 16px)
    }

    .cc-modal__head {
        grid-template-columns: 1fr;
        padding: 22px 62px 16px 18px
    }

    .cc-modal__head .cc-banner__ico {
        display: none
    }

    .cc-modal__body {
        padding: 4px 18px 14px
    }

    .cc-modal__foot {
        grid-template-columns: 1fr;
        padding: 14px 18px 18px;
        gap: 8px
    }
}

@media (prefers-reduced-motion: reduce) {

    .cc-banner,
    .cc-banner.cc-in {
        transition: none;
        transform: translate(-50%, 0)
    }

    .cc-modal[open] {
        animation: none;
        opacity: 1;
        transform: none
    }

    .cc-switch__track,
    .cc-switch__track::after {
        transition: none
    }
}
