.fsb-stack {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    width: 100%;
}

.fsb-stack-top {
    top: 0;
}

.fsb-stack-bottom {
    bottom: 0;
}

body.admin-bar .fsb-stack-top {
    top: 32px;
}

.fsb-banner {
    width: 100%;
    background: var(--fsb-bg, #1f2937);
    color: var(--fsb-text, #ffffff);
    box-sizing: border-box;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

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

.fsb-banner-inner {
    position: relative;
    width: min(1180px, calc(100% - 40px));
    min-height: 48px;
    margin: 0 auto;
    padding: 10px 44px 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    box-sizing: border-box;
    text-align: center;
}

.fsb-message {
    line-height: 1.45;
}

.fsb-message p {
    margin: 0;
    color: inherit;
}

.fsb-message a:not(.fsb-button) {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fsb-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 5px;
    background: var(--fsb-button-bg, #ffffff);
    color: var(--fsb-button-text, #111827) !important;
    text-decoration: none !important;
    font-weight: 700;
    line-height: 1.2;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.fsb-button:hover,
.fsb-button:focus {
    opacity: 0.9;
    transform: translateY(-1px);
}

.fsb-close {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.82;
}

.fsb-close:hover,
.fsb-close:focus {
    opacity: 1;
}

body.fsb-offset-top {
    padding-top: var(--fsb-top-height, 0px) !important;
}

body.fsb-offset-bottom {
    padding-bottom: var(--fsb-bottom-height, 0px) !important;
}

@media (max-width: 782px) {
    body.admin-bar .fsb-stack-top {
        top: 46px;
    }

    .fsb-banner-inner {
        width: 100%;
        padding: 10px 44px 10px 14px;
        flex-direction: column;
        gap: 8px;
    }

    .fsb-button {
        min-height: 32px;
    }
}
