/* Topbar - renders above site header */
.topbar {
    width: 100%;
    background: var(--tb-bg, #D97A2C);
    color: var(--tb-text, #ffffff);
    font-size: 15px;
    line-height: 1.4;
    position: relative;
    z-index: 9999;
}

.topbar.topbar-hidden {
    display: none;
}

.topbar-inner {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 12px 56px;
    max-width: var(--tb-max, 1440px);
    margin: 0 auto;
}

.topbar-icon {
    display: inline-flex;
    flex-shrink: 0;
    opacity: 0.9;
}

.topbar-text {
    text-align: center;
}

.topbar-text a {
    color: inherit;
    text-decoration: underline;
}

.topbar-btn {
    flex-shrink: 0;
    display: inline-block;
    background: var(--tb-btn-bg, #111111) !important;
    color: var(--tb-btn-color, #ffffff) !important;
    padding: 8px 18px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    border: 0 !important;
    border-radius: 0 !important;
    transition: opacity 0.2s ease;
}

.topbar-btn:hover {
    opacity: 0.88;
    background: var(--tb-btn-bg, #111111) !important;
    color: var(--tb-btn-color, #ffffff) !important;
}

.topbar-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--tb-close, currentColor) !important;
    cursor: pointer;
    padding: 6px !important;
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    box-shadow: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    width: auto !important;
    height: auto !important;
    font-size: inherit !important;
    line-height: 1 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    transition: opacity 0.2s ease;
}

.topbar-close:hover,
.topbar-close:focus {
    opacity: 1;
    background: transparent !important;
    color: var(--tb-close, currentColor) !important;
    box-shadow: none !important;
}

.topbar-close svg {
    display: block;
    width: 18px;
    height: 18px;
}

/* Mobile - stacked layout */
@media (max-width: 767px) {
    .topbar-inner {

        column-gap: 12px;
        row-gap: 10px;
        padding: 14px 48px 14px 16px;
    }

    .topbar-icon {
        grid-column: 1;
        grid-row: 1;
        
    }

    .topbar-text {
        grid-column: 2;
        grid-row: 1;
        text-align: left;
        font-size: 14px;
        min-width: 0;
    }

    .topbar-btn {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
    }

    .topbar-close {
        top: 10px;
        transform: none;
    }
}
