.flc-banner,
.flc-modal-backdrop,
.flc-privacy-link {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.flc-banner *,
.flc-modal-backdrop *,
.flc-privacy-link {
    box-sizing: border-box;
}

.flc-theme-dark {
    --flc-banner-text: #f8fafc;
    --flc-banner-bg: #172033;
    --flc-banner-border: rgba(255, 255, 255, 0.14);
    --flc-banner-muted: #dbe4f0;
    --flc-link: #74d4c4;
    --flc-primary-bg: #78e0c9;
    --flc-primary-text: #101827;
    --flc-secondary-bg: #344055;
    --flc-secondary-text: #f8fafc;
    --flc-muted-bg: #eef2f6;
    --flc-muted-text: #101827;
    --flc-focus: #78e0c9;
    --flc-modal-bg: #ffffff;
    --flc-modal-text: #172033;
    --flc-choice-bg: #fbfcfe;
    --flc-choice-border: #dde5ee;
    --flc-choice-body: #526173;
    --flc-privacy-bg: rgba(255, 255, 255, 0.94);
    --flc-privacy-text: #172033;
    --flc-privacy-border: #d8e0ea;
}

.flc-theme-light {
    --flc-banner-text: #172033;
    --flc-banner-bg: #ffffff;
    --flc-banner-border: #d8e0ea;
    --flc-banner-muted: #475569;
    --flc-link: #0f766e;
    --flc-primary-bg: #0f766e;
    --flc-primary-text: #ffffff;
    --flc-secondary-bg: #e8eef5;
    --flc-secondary-text: #172033;
    --flc-muted-bg: #f5f7fa;
    --flc-muted-text: #172033;
    --flc-focus: #0f766e;
    --flc-modal-bg: #ffffff;
    --flc-modal-text: #172033;
    --flc-choice-bg: #fbfcfe;
    --flc-choice-border: #dde5ee;
    --flc-choice-body: #526173;
    --flc-privacy-bg: rgba(255, 255, 255, 0.96);
    --flc-privacy-text: #172033;
    --flc-privacy-border: #d8e0ea;
}

.flc-theme-forrest {
    --flc-banner-text: #f4fffa;
    --flc-banner-bg: #103f39;
    --flc-banner-border: rgba(183, 244, 221, 0.28);
    --flc-banner-muted: #d7f1e9;
    --flc-link: #a8f0d2;
    --flc-primary-bg: #b7f4dd;
    --flc-primary-text: #0c302b;
    --flc-secondary-bg: #245c53;
    --flc-secondary-text: #f4fffa;
    --flc-muted-bg: #f1fbf6;
    --flc-muted-text: #0c302b;
    --flc-focus: #b7f4dd;
    --flc-modal-bg: #ffffff;
    --flc-modal-text: #143832;
    --flc-choice-bg: #f5fbf8;
    --flc-choice-border: #cfe6dc;
    --flc-choice-body: #45635c;
    --flc-privacy-bg: rgba(244, 255, 250, 0.96);
    --flc-privacy-text: #123d36;
    --flc-privacy-border: #badfce;
}

.flc-theme-custom {
    --flc-banner-text: #f8fafc;
    --flc-banner-bg: #172033;
    --flc-banner-border: rgba(255, 255, 255, 0.14);
    --flc-banner-muted: #dbe4f0;
    --flc-link: #74d4c4;
    --flc-primary-bg: #78e0c9;
    --flc-primary-text: #101827;
    --flc-secondary-bg: #344055;
    --flc-secondary-text: #f8fafc;
    --flc-muted-bg: #eef2f6;
    --flc-muted-text: #101827;
    --flc-focus: #78e0c9;
    --flc-modal-bg: #ffffff;
    --flc-modal-text: #172033;
    --flc-choice-bg: #fbfcfe;
    --flc-choice-border: #dde5ee;
    --flc-choice-body: #526173;
    --flc-privacy-bg: rgba(255, 255, 255, 0.94);
    --flc-privacy-text: #172033;
    --flc-privacy-border: #d8e0ea;
}

.flc-banner {
    position: fixed;
    z-index: 2147483000;
    color: var(--flc-banner-text);
    background: var(--flc-banner-bg);
    border: 1px solid var(--flc-banner-border);
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(8, 13, 24, 0.22);
    opacity: 0;
    transform: translateY(8px);
    animation: flc-banner-in 220ms ease-out forwards;
}

.flc-position-bottom-wide {
    right: 16px;
    bottom: 16px;
    left: 16px;
    margin: 0 auto;
    max-width: 1080px;
}

.flc-position-top-wide {
    top: 16px;
    right: 16px;
    left: 16px;
    margin: 0 auto;
    max-width: 1080px;
    transform: translateY(-8px);
}

.flc-position-bottom-right {
    right: 16px;
    bottom: 16px;
    left: auto;
    width: min(460px, calc(100vw - 32px));
}

.flc-position-bottom-left {
    right: auto;
    bottom: 16px;
    left: 16px;
    width: min(460px, calc(100vw - 32px));
}

.flc-banner-content {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
}

.flc-position-bottom-right .flc-banner-content,
.flc-position-bottom-left .flc-banner-content {
    display: grid;
    gap: 14px;
}

.flc-banner-copy {
    min-width: 0;
}

.flc-banner h2,
.flc-modal-panel h2 {
    margin: 0;
    color: inherit;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: 0;
}

.flc-banner p {
    margin: 7px 0 0;
    color: var(--flc-banner-muted);
    font-size: 14px;
    line-height: 1.45;
}

.flc-banner a {
    display: inline-block;
    margin-top: 8px;
    color: var(--flc-link);
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.flc-banner-actions,
.flc-modal-actions {
    --flc-button-gap: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: var(--flc-button-gap);
    justify-content: flex-end;
}

.flc-banner-actions {
    flex: 0 0 auto;
    max-width: 420px;
}

.flc-position-bottom-right .flc-banner-actions,
.flc-position-bottom-left .flc-banner-actions {
    justify-content: flex-start;
    max-width: none;
}

.flc-button,
.flc-icon-text-button,
.flc-privacy-link {
    appearance: none;
    border: 0;
    cursor: pointer;
    text-align: center;
}

.flc-button {
    min-height: 40px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: normal;
}

.flc-button-primary {
    color: var(--flc-primary-text);
    background: var(--flc-primary-bg);
}

.flc-button-secondary {
    color: var(--flc-primary-bg);
    background: var(--flc-primary-text);
    border: .15em solid var(--flc-primary-bg);
}

.flc-button-muted {
    color: var(--flc-primary-bg);
    background: var(--flc-primary-text);
    border: .15em solid var(--flc-primary-bg);
}

.flc-button:focus,
.flc-icon-text-button:focus,
.flc-privacy-link:focus {
    outline: 2px solid var(--flc-focus);
    outline-offset: 2px;
}

.flc-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147483001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(12, 18, 31, 0.54);
}

.flc-modal-panel {
    width: min(620px, 100%);
    max-height: min(720px, calc(100vh - 36px));
    overflow: auto;
    color: var(--flc-modal-text);
    background: var(--flc-modal-bg);
    border-radius: 8px;
    box-shadow: 0 20px 64px rgba(8, 13, 24, 0.28);
}

.flc-modal-header {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 10px;
}

.flc-icon-text-button {
    flex: 0 0 auto;
    padding: 8px 10px;
    color: var(--flc-choice-body);
    background: transparent;
    font-size: 13px;
    font-weight: 700;
}

.flc-gpc-notice {
    margin: 6px 18px 12px;
    padding: 10px 12px;
    color: #4b2f00;
    background: #fff3cd;
    border: 1px solid #f4d37b;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
}

.flc-choice-row {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin: 0 18px 10px;
    padding: 14px;
    border: 1px solid var(--flc-choice-border);
    border-radius: 8px;
    background: var(--flc-choice-bg);
}

.flc-choice-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.flc-choice-copy strong {
    color: var(--flc-modal-text);
    font-size: 15px;
    line-height: 1.25;
}

.flc-choice-copy span {
    color: var(--flc-choice-body);
    font-size: 13px;
    line-height: 1.4;
}

.flc-choice-row input {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin: 0;
}

.flc-modal-actions {
    padding: 8px 18px 18px;
}

@keyframes flc-banner-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flc-privacy-link {
    position: fixed;
    left: 12px;
    bottom: 12px;
    z-index: 2147482999;
    max-width: min(360px, calc(100vw - 24px));
    padding: 8px 10px;
    color: var(--flc-privacy-text);
    background: var(--flc-privacy-bg);
    border: 1px solid var(--flc-privacy-border);
    border-radius: 6px;
    box-shadow: 0 8px 28px rgba(8, 13, 24, 0.14);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.flc-banner-visible .flc-privacy-link {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .flc-banner {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

@media (max-width: 720px) {
    .flc-banner {
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }

    .flc-position-bottom-wide,
    .flc-position-bottom-right,
    .flc-position-bottom-left {
        top: auto;
        bottom: 10px;
    }

    .flc-position-top-wide {
        top: 10px;
        bottom: auto;
    }

    .flc-banner-content {
        display: grid;
        gap: 14px;
        padding: 14px;
    }

    .flc-banner-actions {
        justify-content: stretch;
    }

    .flc-banner-actions .flc-button {
        flex: 1 1 calc((100% - (var(--flc-button-gap) * 2)) / 3);
        min-width: 0;
        padding-right: 8px;
        padding-left: 8px;
    }

    .flc-modal-actions {
        justify-content: stretch;
    }

    .flc-modal-actions .flc-button {
        flex: 1 1 calc((100% - var(--flc-button-gap)) / 2);
        min-width: 0;
    }

    .flc-choice-row {
        align-items: flex-start;
    }
}

