.fb-consent-banner,
.fb-cookie-settings {
    font-family: "IBM Plex Sans", Arial, sans-serif;
}

.fb-consent-banner {
    position: fixed;
    right: 20px;
    bottom: 20px;
    left: 20px;
    z-index: 2147483000;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 16px 24px;
    width: min(960px, calc(100% - 40px));
    margin: 0 auto;
    padding: 20px;
    color: #f3f6f4;
    background: #111814;
    border: 1px solid #344039;
    border-radius: 14px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .45);
}

.fb-consent-copy h2 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.fb-consent-copy p {
    max-width: 640px;
    margin: 0;
    color: #cbd2ce;
    font-size: 14px;
    line-height: 1.5;
}

.fb-consent-copy a {
    color: #aeb8b2;
    font-size: 12px;
    text-decoration: none;
    text-underline-offset: 2px;
}

.fb-consent-copy a:hover {
    color: #f5b94c;
    text-decoration: underline;
}

.fb-consent-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.fb-consent-button,
.fb-cookie-settings {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.fb-consent-button {
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid #4a5650;
}

.fb-consent-button:focus-visible,
.fb-cookie-settings:focus-visible,
.fb-consent-preference input:focus-visible {
    outline: 3px solid rgba(245, 185, 76, .45);
    outline-offset: 2px;
}

.fb-consent-primary {
    color: #17120a;
    background: #f5b94c;
    border-color: #f5b94c;
}

.fb-consent-primary:hover {
    background: #ffc65c;
}

.fb-consent-secondary {
    color: #eef2ef;
    background: transparent;
}

.fb-consent-secondary:hover {
    background: #202a25;
}

.fb-consent-reject {
    min-height: 36px;
    padding: 7px 10px;
    color: #a3ada7;
    background: transparent;
    border-color: transparent;
    font-size: 12px;
    font-weight: 500;
}

.fb-consent-reject:hover {
    color: #d4dad6;
    background: transparent;
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fb-consent-preferences {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
}

.fb-consent-preferences[hidden],
.fb-consent-button[hidden] {
    display: none;
}

.fb-consent-preference {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0;
    padding: 12px;
    color: #eef2ef;
    background: #18211c;
    border: 1px solid #303b35;
    border-radius: 9px;
    cursor: pointer;
}

.fb-consent-preference input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #f5b94c;
}

.fb-consent-preference span,
.fb-consent-preference strong,
.fb-consent-preference small {
    display: block;
}

.fb-consent-preference strong {
    margin-bottom: 2px;
    font-size: 14px;
}

.fb-consent-preference small {
    color: #aeb8b2;
    font-size: 12px;
    line-height: 1.4;
}

.fb-cookie-settings {
    position: fixed;
    bottom: 12px;
    left: 12px;
    z-index: 2147482999;
    padding: 7px 10px;
    color: #d8dedb;
    background: rgba(17, 24, 20, .94);
    border: 1px solid #3c4741;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}

.fb-cookie-settings:hover {
    color: #fff;
    border-color: #f5b94c;
}

@media (max-width: 760px) {
    .fb-consent-banner {
        right: 10px;
        bottom: 10px;
        left: 10px;
        display: block;
        width: auto;
        padding: 16px;
        max-height: calc(100vh - 20px);
        overflow-y: auto;
    }

    .fb-consent-actions {
        justify-content: stretch;
        margin-top: 14px;
    }

    .fb-consent-button {
        flex: 1 1 135px;
    }

    .fb-consent-preferences {
        grid-template-columns: 1fr;
        margin-top: 14px;
    }
}
