/* Instinto Capital — public cookie consent experience */
.cc-wrap {
    --cc-gold: #d8ad4a;
    --cc-gold-light: #f5d98e;
    --cc-ink: #050a12;
    --cc-surface: #0a111d;
    --cc-surface-soft: #101a29;
    --cc-text: #f8f4e9;
    --cc-muted: #aab4c2;
    --cc-line: rgba(239, 207, 126, .18);
    --cc-focus: rgba(239, 207, 126, .42);
    color-scheme: dark;
    font-family: "General Sans", "Inter", sans-serif;
}

.cc-bar {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    left: max(18px, env(safe-area-inset-left));
    z-index: 10050;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
    padding: 18px;
    overflow: hidden;
    color: var(--cc-text);
    background:
        radial-gradient(circle at 8% 0%, rgba(216, 173, 74, .13), transparent 30%),
        linear-gradient(135deg, rgba(13, 23, 38, .985), rgba(5, 10, 18, .985));
    border: 1px solid var(--cc-line);
    border-radius: 20px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, .58), 0 0 0 1px rgba(255, 255, 255, .025) inset;
    opacity: 0;
    transform: translateY(calc(100% + 36px));
    transition: opacity .32s ease, transform .42s cubic-bezier(.2, .75, .25, 1);
    isolation: isolate;
}

.cc-bar::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(110deg, transparent 0 48%, rgba(255, 255, 255, .022) 48% 49%, transparent 49% 100%);
    background-size: 28px 100%;
    content: "";
    opacity: .5;
    pointer-events: none;
}

.cc-bar.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cc-bar__identity {
    align-self: stretch;
    display: flex;
    align-items: center;
    padding-right: 17px;
    border-right: 1px solid var(--cc-line);
}

.cc-bar__icon,
.cc-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    color: var(--cc-gold-light);
    font-size: 22px;
    background: linear-gradient(145deg, rgba(216, 173, 74, .2), rgba(216, 173, 74, .06));
    border: 1px solid rgba(239, 207, 126, .22);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.cc-bar__body {
    min-width: 0;
}

.cc-bar__eyebrow,
.cc-modal__eyebrow {
    display: block;
    margin: 0 0 2px;
    color: var(--cc-gold);
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.cc-bar__title {
    margin: 0 0 4px;
    color: var(--cc-text);
    font-family: "General Sans", "Inter", sans-serif;
    font-size: 17px;
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -.015em;
}

.cc-bar__text {
    max-width: 680px;
    margin: 0;
    color: var(--cc-muted);
    font-size: 12.5px;
    line-height: 1.55;
}

.cc-bar__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    margin-top: 8px;
}

.cc-bar__badge {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    color: #d7deea;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .02em;
}

.cc-bar__badge i {
    color: var(--cc-gold);
    font-size: 13px;
}

.cc-bar__link {
    color: var(--cc-gold-light) !important;
    font-size: 10.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: color .18s ease;
}

.cc-bar__link:hover {
    color: #fff1c4 !important;
}

.cc-bar__actions {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 8px;
    align-items: center;
}

.cc-bar__actions .cc-btn--gold {
    grid-column: 1 / -1;
    grid-row: 1;
}

.cc-btn {
    min-height: 40px;
    margin: 0;
    padding: 9px 15px;
    border: 1px solid transparent;
    border-radius: 11px;
    outline: 0;
    font-family: "General Sans", "Inter", sans-serif;
    font-size: 11.5px;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.cc-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.cc-btn:focus-visible,
.cc-modal__close:focus-visible,
.cc-switch input:focus-visible + .cc-switch__track,
.cc-modal__backdrop:focus-visible {
    outline: 2px solid var(--cc-gold-light);
    outline-offset: 3px;
}

.cc-btn:disabled {
    cursor: wait;
    opacity: .58;
}

.cc-btn--gold {
    color: #171006;
    background: linear-gradient(135deg, #c89632, #f1d17d);
    box-shadow: 0 8px 22px rgba(216, 173, 74, .18);
}

.cc-btn--gold:hover:not(:disabled) {
    color: #0b0803;
    background: linear-gradient(135deg, #daa942, #ffe3a0);
    box-shadow: 0 10px 28px rgba(216, 173, 74, .28);
}

.cc-btn--outline {
    color: #e8edf4;
    background: rgba(255, 255, 255, .035);
    border-color: rgba(255, 255, 255, .13);
}

.cc-btn--outline:hover:not(:disabled) {
    background: rgba(255, 255, 255, .075);
    border-color: rgba(239, 207, 126, .24);
}

.cc-btn--ghost {
    color: #aeb8c6;
    background: transparent;
    border-color: transparent;
}

.cc-btn--ghost:hover:not(:disabled) {
    color: #fff;
    background: rgba(255, 255, 255, .045);
}

.cc-bar__error {
    grid-column: 2 / -1;
    margin: -6px 0 0;
    color: #ffb7b7;
    font-size: 11px;
}

.cc-bar__error[hidden] {
    display: none !important;
}

body.cc-modal-open {
    overflow: hidden;
}

.cc-modal[hidden] {
    display: none !important;
}

.cc-modal {
    position: fixed;
    inset: 0;
    z-index: 10100;
    display: grid;
    place-items: center;
    padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    opacity: 0;
    transition: opacity .18s ease;
}

.cc-modal.is-visible {
    opacity: 1;
}

.cc-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(1, 5, 10, .76);
    border: 0;
    backdrop-filter: blur(8px);
    cursor: default;
}

.cc-modal__panel {
    position: relative;
    width: min(630px, 100%);
    max-height: min(780px, calc(100dvh - 36px));
    overflow: auto;
    overscroll-behavior: contain;
    color: var(--cc-text);
    background:
        radial-gradient(circle at 100% 0%, rgba(216, 173, 74, .12), transparent 32%),
        linear-gradient(150deg, #101a29, #070d16 62%);
    border: 1px solid var(--cc-line);
    border-radius: 22px;
    box-shadow: 0 36px 120px rgba(0, 0, 0, .72), 0 0 0 1px rgba(255, 255, 255, .02) inset;
    transform: translateY(14px) scale(.985);
    transition: transform .24s cubic-bezier(.2, .75, .25, 1);
}

.cc-modal.is-visible .cc-modal__panel {
    transform: translateY(0) scale(1);
}

.cc-modal__head {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px 22px 16px;
}

.cc-modal__heading {
    display: flex;
    gap: 13px;
    align-items: center;
}

.cc-modal__icon {
    width: 42px;
    height: 42px;
    font-size: 19px;
    border-radius: 12px;
}

.cc-modal__head h2 {
    margin: 0;
    color: var(--cc-text);
    font-family: "General Sans", "Inter", sans-serif;
    font-size: clamp(19px, 3vw, 23px);
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.cc-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    padding: 0;
    color: #aeb8c6;
    font-size: 27px;
    font-weight: 300;
    line-height: 1;
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 11px;
    cursor: pointer;
    transition: color .18s ease, background .18s ease;
}

.cc-modal__close:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.cc-modal__geo {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin: 0 22px 17px;
    padding: 11px 13px;
    color: #bbc5d2;
    font-size: 11.5px;
    line-height: 1.5;
    background: rgba(216, 173, 74, .06);
    border: 1px solid rgba(216, 173, 74, .13);
    border-radius: 11px;
}

.cc-modal__geo i {
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--cc-gold);
    font-size: 15px;
}

.cc-modal__body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 22px 20px;
}

.cc-cat {
    min-width: 0;
    padding: 14px;
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 13px;
    transition: background .18s ease, border-color .18s ease;
}

.cc-cat:has(input:checked),
.cc-cat--required {
    background: rgba(216, 173, 74, .055);
    border-color: rgba(216, 173, 74, .16);
}

.cc-cat__head {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cc-cat__head > div {
    display: flex;
    gap: 8px;
    align-items: center;
    min-width: 0;
}

.cc-cat__number {
    color: #788698;
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
}

.cc-cat strong {
    color: #f2f4f7;
    font-size: 13px;
    font-weight: 650;
}

.cc-cat p {
    margin: 0;
    color: #98a5b5;
    font-size: 11px;
    line-height: 1.55;
}

.cc-cat__status {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    flex: 0 0 auto;
    padding: 4px 7px;
    color: var(--cc-gold-light);
    font-size: 8.5px;
    font-weight: 650;
    background: rgba(216, 173, 74, .1);
    border: 1px solid rgba(216, 173, 74, .14);
    border-radius: 99px;
}

.cc-switch {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    cursor: pointer;
}

.cc-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.cc-switch__track {
    position: relative;
    display: block;
    width: 38px;
    height: 22px;
    background: #202b39;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 99px;
    transition: background .2s ease, border-color .2s ease;
}

.cc-switch__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    background: #a7b1be;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .3);
    transition: transform .2s ease, background .2s ease;
}

.cc-switch input:checked + .cc-switch__track {
    background: rgba(216, 173, 74, .3);
    border-color: rgba(239, 207, 126, .4);
}

.cc-switch input:checked + .cc-switch__track .cc-switch__thumb {
    background: var(--cc-gold-light);
    transform: translateX(16px);
}

.cc-modal__foot {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px 20px;
    border-top: 1px solid rgba(255, 255, 255, .075);
}

.cc-modal__foot > p {
    display: flex;
    gap: 6px;
    max-width: 245px;
    margin: 0;
    color: #8997a8;
    font-size: 9.5px;
    line-height: 1.45;
}

.cc-modal__foot > p i {
    flex: 0 0 auto;
    color: var(--cc-gold);
    font-size: 13px;
}

.cc-modal__actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

@media (max-width: 860px) {
    .cc-bar {
        grid-template-columns: auto minmax(0, 1fr);
        width: min(680px, calc(100% - 28px));
        padding: 17px;
    }

    .cc-bar__actions {
        grid-column: 2;
        display: flex;
        flex-wrap: wrap;
    }

    .cc-bar__actions .cc-btn--gold {
        grid-column: auto;
        grid-row: auto;
        order: 3;
    }

    .cc-bar__error {
        grid-column: 2;
    }
}

@media (max-width: 620px) {
    .cc-bar {
        right: max(10px, env(safe-area-inset-right));
        bottom: max(10px, env(safe-area-inset-bottom));
        left: max(10px, env(safe-area-inset-left));
        grid-template-columns: 1fr;
        gap: 13px;
        width: calc(100% - 20px);
        max-height: calc(100dvh - 20px);
        padding: 16px;
        overflow-y: auto;
        border-radius: 17px;
    }

    .cc-bar__identity {
        display: none;
    }

    .cc-bar__title {
        font-size: 16px;
    }

    .cc-bar__text {
        font-size: 12px;
    }

    .cc-bar__actions {
        grid-column: 1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .cc-bar__actions .cc-btn--gold {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .cc-bar__actions .cc-btn {
        width: 100%;
        min-height: 42px;
        padding-right: 9px;
        padding-left: 9px;
        white-space: normal;
    }

    .cc-bar__error {
        grid-column: 1;
        margin-top: -4px;
    }

    .cc-modal {
        align-items: end;
        padding: 8px 8px max(8px, env(safe-area-inset-bottom));
    }

    .cc-modal__panel {
        width: 100%;
        max-height: calc(100dvh - 16px);
        border-radius: 20px;
        transform: translateY(28px);
    }

    .cc-modal__head {
        padding: 18px 16px 14px;
    }

    .cc-modal__icon {
        display: none;
    }

    .cc-modal__geo {
        margin: 0 16px 14px;
    }

    .cc-modal__body {
        grid-template-columns: 1fr;
        padding: 0 16px 16px;
    }

    .cc-cat {
        padding: 12px;
    }

    .cc-modal__foot {
        align-items: stretch;
        flex-direction: column;
        padding: 14px 16px max(16px, env(safe-area-inset-bottom));
    }

    .cc-modal__foot > p {
        max-width: none;
    }

    .cc-modal__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .cc-modal__actions .cc-btn {
        width: 100%;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cc-bar,
    .cc-modal,
    .cc-modal__panel,
    .cc-btn,
    .cc-switch__track,
    .cc-switch__thumb {
        transition-duration: .01ms !important;
    }
}
