.sst-consent[hidden],
.sst-consent [hidden] {
    display: none !important;
}

body {
    padding-bottom: var(--sst-consent-h, 0);
}

.sst-consent {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 100000;
    background: var(--sst-consent-bg, var(--sst-surface, #ffffff));
    color: var(--sst-consent-text, var(--sst-text, #1a1a1a));
    font-family: var(--sst-font, inherit);
    border-top: 1px solid rgba(0, 0, 0, 0.18);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    font-size: 16px;
    line-height: 1.5;
    animation: sst-consent-in 0.25s ease-out;
}

.sst-consent *,
.sst-consent *::before,
.sst-consent *::after {
    box-sizing: border-box;
}

.sst-consent__inner {
    max-width: 1100px;
    max-height: 85vh;
    margin: 0 auto;
    padding: 16px 20px;
    overflow-y: auto;
}

.sst-consent__title {
    margin: 0 0 4px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: inherit;
}

.sst-consent__text {
    margin: 0;
    font-size: 16px;
}

.sst-consent__policy {
    color: inherit;
    text-decoration: underline;
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
}

.sst-consent__fieldset {
    margin: 12px 0 0;
    padding: 0;
    border: 0;
}

.sst-consent__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.sst-consent__row + .sst-consent__row {
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.sst-consent__label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 44px;
    padding: 10px 0;
    cursor: pointer;
}

.sst-consent__label input {
    font-size: 16px;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin: 0;
    accent-color: var(--sst-consent-btn, var(--sst-accent, #1a1a1a));
}

.sst-consent__desc {
    display: block;
    font-size: 16px;
    opacity: 0.85;
}

.sst-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

/* Accept and Reject share one style and size so neither is nudged. */
.sst-consent__btn {
    flex: 0 1 230px;
    min-height: 44px;
    min-width: 44px;
    padding: 10px 20px;
    border: 2px solid var(--sst-consent-btn, var(--sst-accent, #1a1a1a));
    border-radius: var(--sst-radius, 6px);
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.sst-consent__btn--solid {
    background: var(--sst-consent-btn, var(--sst-accent, #1a1a1a));
    color: var(--sst-consent-btn-text, var(--sst-accent-contrast, #ffffff));
}

.sst-consent__btn--outline {
    background: transparent;
    color: var(--sst-consent-text, var(--sst-text, #1a1a1a));
}

.sst-consent__btn:hover {
    filter: brightness(1.25);
}

.sst-consent__btn--outline:hover {
    filter: none;
    background: rgba(0, 0, 0, 0.06);
}

.sst-consent button:focus-visible,
.sst-consent a:focus-visible,
.sst-consent input:focus-visible,
.sst-consent__title:focus-visible,
.sst-consent-link:focus-visible {
    outline: 3px solid var(--sst-consent-focus, var(--sst-accent, #1a1a1a));
    outline-offset: 2px;
}

.sst-consent__title:focus {
    outline: none;
}

.sst-consent__title:focus-visible {
    outline: 3px solid var(--sst-consent-focus, var(--sst-accent, #1a1a1a));
}

.sst-consent-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0 8px;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-size: 16px;
    text-decoration: underline;
    cursor: pointer;
}

.sst-consent-link--floating {
    position: fixed;
    left: 8px;
    bottom: 8px;
    z-index: 99990;
    padding: 0 12px;
    background: var(--sst-surface, #ffffff);
    color: var(--sst-text, #1a1a1a);
    font-family: var(--sst-font, inherit);
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: var(--sst-radius, 6px);
    font-size: 16px;
}

body.sst-consent-open .sst-consent-link--floating {
    display: none;
}

@keyframes sst-consent-in {
    from {
        transform: translateY(12px);
        opacity: 0;
    }
    to {
        transform: none;
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .sst-consent__btn {
        flex: 1 1 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sst-consent {
        animation: none;
    }
}

@media print {
    .sst-consent,
    .sst-consent-link--floating {
        display: none !important;
    }
}
