/* Simple Announcement Bar v1.0.0 */
.sab-bar,
.sab-bar * {
    box-sizing: border-box;
}

.sab-bar {
    width: 100%;
    min-height: var(--sab-height, 54px);
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: var(--sab-bg, #111827);
    color: var(--sab-text, #fff);
    border-top: 1px solid var(--sab-border, #374151);
    border-bottom: 1px solid var(--sab-border, #374151);
    font-size: var(--sab-font-size, 14px);
    line-height: 1.25;
    font-family: inherit;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 999;
}

.sab-bar.sab-sticky {
    position: sticky;
    top: 0;
}

.sab-cell {
    width: var(--sab-width);
    min-width: 0;
    min-height: var(--sab-height, 54px);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
    border-right: 1px solid var(--sab-border, #374151);
    overflow: hidden;
}

.sab-cell:last-child {
    border-right: 0;
}

.sab-cell a {
    color: inherit;
    text-decoration: none;
}

.sab-email a,
.sab-phone > a:first-child {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sab-icon,
.sab-megaphone {
    flex: 0 0 auto;
}

.sab-whatsapp {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--sab-accent, #25D366);
    color: #fff !important;
    font-size: 14px;
    flex: 0 0 28px;
}

.sab-announcement {
    font-weight: 600;
    white-space: normal;
}

.sab-button-cell {
    padding: 6px 10px;
}

.sab-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 16px;
    border-radius: 5px;
    background: var(--sab-button-bg, #f59e0b);
    color: var(--sab-button-text, #111827) !important;
    font-weight: 700;
    white-space: nowrap;
    transition: opacity .2s ease, transform .2s ease;
}

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

.sab-location {
    white-space: nowrap;
    text-overflow: ellipsis;
}

@media (max-width: 900px) {
    .sab-bar {
        flex-wrap: wrap;
        min-height: 0;
    }

    .sab-cell {
        min-height: var(--sab-height, 54px);
    }

    .sab-announcement {
        width: 100% !important;
        order: -1;
        min-height: 46px;
    }

    .sab-email,
    .sab-phone,
    .sab-button-cell,
    .sab-location {
        flex: 1 1 25%;
    }
}

@media (max-width: 600px) {
    .sab-bar {
        font-size: 12px;
    }

    .sab-cell {
        padding: 7px 6px;
    }

    .sab-email,
    .sab-phone,
    .sab-button-cell,
    .sab-location {
        flex: 1 1 50%;
    }

    .sab-location {
        display: none;
    }

    .sab-button {
        width: 100%;
        padding-left: 9px;
        padding-right: 9px;
    }
}
