/* ── Cookie consent banner & modal ── */

.st-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    padding: 16px;
    pointer-events: none;
}

.st-cookie-banner[hidden] {
    display: none !important;
}

.st-cookie-banner-inner {
    pointer-events: auto;
    max-width: min(960px, calc(100% - 8px));
    margin: 0 auto;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid rgba(18, 18, 18, 0.12);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(18, 18, 18, 0.16);
}

.st-cookie-banner-title {
    margin: 0 0 6px;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #121212;
}

.st-cookie-banner-desc {
    margin: 0;
    max-width: 560px;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 13px;
    line-height: 1.55;
    color: #5c5c5c;
}

.st-cookie-banner-desc a {
    color: #5b21b6;
    font-weight: 600;
    text-decoration: none;
}

.st-cookie-banner-desc a:hover {
    text-decoration: underline;
}

.st-cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.st-cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.st-cookie-btn--solid {
    background: #7c3aed;
    color: #fff;
    border-color: #7c3aed;
}

.st-cookie-btn--solid:hover {
    background: #5b21b6;
    border-color: #5b21b6;
}

.st-cookie-btn--ghost {
    background: #fff;
    color: #121212;
    border-color: rgba(18, 18, 18, 0.14);
}

.st-cookie-btn--ghost:hover {
    background: rgba(18, 18, 18, 0.04);
}

.st-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 9100;
    display: grid;
    place-items: center;
    padding: 20px;
}

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

.st-cookie-modal-open {
    overflow: hidden;
}

.st-cookie-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.45);
}

.st-cookie-modal-panel {
    position: relative;
    width: min(520px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 24px;
    background: #fff;
    border: 1px solid rgba(18, 18, 18, 0.12);
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(18, 18, 18, 0.2);
}

.st-cookie-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.st-cookie-modal-head h2 {
    margin: 0;
    font-family: "Outfit", "DM Sans", system-ui, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #121212;
}

.st-cookie-modal-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #5c5c5c;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.st-cookie-modal-close:hover {
    background: rgba(18, 18, 18, 0.06);
    color: #121212;
}

.st-cookie-modal-lead {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.6;
    color: #5c5c5c;
}

.st-cookie-pref-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.st-cookie-pref {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(18, 18, 18, 0.1);
    border-radius: 12px;
    background: rgba(18, 18, 18, 0.02);
}

.st-cookie-pref-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.st-cookie-pref-copy strong {
    font-size: 14px;
    color: #121212;
}

.st-cookie-pref-copy span {
    font-size: 13px;
    line-height: 1.45;
    color: #5c5c5c;
}

.st-cookie-pref-badge {
    flex-shrink: 0;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8a8a8a;
}

.st-cookie-toggle {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 26px;
    cursor: pointer;
}

.st-cookie-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.st-cookie-toggle-ui {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(18, 18, 18, 0.14);
    transition: background 0.15s;
}

.st-cookie-toggle-ui::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(18, 18, 18, 0.18);
    transition: transform 0.15s;
}

.st-cookie-toggle input:checked + .st-cookie-toggle-ui {
    background: #7c3aed;
}

.st-cookie-toggle input:checked + .st-cookie-toggle-ui::after {
    transform: translateX(18px);
}

.st-cookie-toggle input:focus-visible + .st-cookie-toggle-ui {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}

.st-cookie-modal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(18, 18, 18, 0.08);
}

.st-cookie-policy-link {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 12px;
    font-weight: 600;
    color: #5b21b6;
    text-decoration: none;
}

.st-cookie-policy-link:hover {
    text-decoration: underline;
}

.st-footer-legal .st-cookie-settings-btn,
.st-footer-group .st-cookie-settings-btn {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-align: left;
}

.st-footer-group .st-cookie-settings-btn {
    display: block;
    width: 100%;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: #5c5c5c;
    transition: color 0.14s;
}

.st-footer-group .st-cookie-settings-btn:hover {
    color: #121212;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 640px) {
    .st-cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .st-cookie-banner-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .st-cookie-btn {
        width: 100%;
    }

    .st-cookie-modal-foot {
        flex-direction: column;
        align-items: stretch;
    }

    .st-cookie-modal-foot .st-cookie-btn {
        width: 100%;
    }
}
