/* === Bottom Bar with Multiple Buttons === */
.scst-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex !important;
    z-index: 999999 !important;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
    /* iOS safe area for notch/home bar */
    padding-bottom: env(safe-area-inset-bottom, 0px);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.scst-bar-btn {
    flex: 1;
    text-align: center;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.scst-bar-btn a,
.scst-bar-btn a:visited {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none !important;
    color: #ffffff !important;
    font-weight: 700;
    width: 100%;
    height: 100%;
    padding: 10px 8px;
    font-size: 14px;
    line-height: 1.2;
    box-sizing: border-box;
}

.scst-bar-btn a:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.scst-bar-btn a:active {
    background-color: rgba(255, 255, 255, 0.2);
}

.scst-appt-btn {
    cursor: pointer;
}

/* === Single Full-Width Call Button === */
.call-widget-full {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
    display: block !important;
    z-index: 999999 !important;
    text-align: center;
    min-height: 48px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.call-widget-full a,
.call-widget-full a:visited {
    display: block;
    text-decoration: none !important;
    color: #ffffff !important;
    font-weight: 700;
    padding: 12px 15px;
}

.call-widget-full a:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.call-widget-full a:active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* === Old class compatibility (hide old markup if any) === */
.call-widget,
.whatsapp-widget {
    display: none !important;
}

/* === Mobile adjustments === */
@media only screen and (max-width: 768px) {
    .scst-bar-btn a {
        font-size: 13px;
        padding: 10px 6px;
        gap: 4px;
    }
}

@media only screen and (max-width: 400px) {
    .scst-bar-btn a {
        font-size: 12px;
        padding: 8px 4px;
        gap: 3px;
    }

    .scst-bar-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* Hide bottom bar when popup is open */
body.ag-popup-open .scst-bottom-bar,
body.ag-popup-open .call-widget-full {
    display: none !important;
}

/* Icon alignment */
.bi {
    vertical-align: -0.125em;
    fill: currentColor;
}

input#ag-name {
    padding-left: 30px !important;
}

input#ag-email {
    padding-left: 30px !important;
}

textarea#ag-note {
    padding-left: 30px !important;
}

input#ag-phone {
    padding-left: 30px !important;
}