/* ============================================
   OVZ Mobile Contact — Frontend Styles
   ============================================ */

/* Base Bar */
.ovz-mc-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    display: flex;
    align-items: stretch;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Visibility */
.ovz-mc-mobile-only {
    display: flex;
}
.ovz-mc-desktop-only {
    display: none;
}

/* Button base */
.ovz-mc-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #fff !important;
    transition: opacity 0.2s ease, transform 0.15s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.ovz-mc-btn:hover {
    opacity: 0.92;
    color: #fff !important;
    text-decoration: none !important;
}

.ovz-mc-btn:active {
    transform: scale(0.97);
}

/* Button colors */
.ovz-mc-btn-whatsapp {
    background-color: var(--ovz-wa-color, #25D366);
}
.ovz-mc-btn-phone {
    background-color: var(--ovz-phone-color, #007BFF);
}
.ovz-mc-btn-map {
    background-color: var(--ovz-map-color, #FF9900);
}

/* Inner layout */
.ovz-mc-btn-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-align: center;
}

/* Icon */
.ovz-mc-icon {
    font-size: 18px;
    flex-shrink: 0;
}

/* ============================================
   MOBILE (< 992px)
   ============================================ */
.ovz-mc-bar {
    padding: 0;
    gap: 0;
}

.ovz-mc-btn {
    padding: 14px 8px;
    border-radius: 0;
    min-height: 52px;
}

/* First and last button radius */
.ovz-mc-bar .ovz-mc-btn:first-child {
    border-radius: var(--ovz-radius, 0) 0 0 0;
}
.ovz-mc-bar .ovz-mc-btn:last-child {
    border-radius: 0 var(--ovz-radius, 0) 0 0;
}

/* Single button */
.ovz-mc-cols-1 .ovz-mc-btn:first-child {
    border-radius: var(--ovz-radius, 0) var(--ovz-radius, 0) 0 0;
}

/* Mobile text */
.ovz-mc-mobile-text {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* Desktop text hidden on mobile */
.ovz-mc-desktop-text {
    display: none;
}

/* Button gap on mobile with slight separation */
.ovz-mc-btn + .ovz-mc-btn {
    margin-left: 2px;
}

/* ============================================
   DESKTOP (>= 992px)
   ============================================ */
@media (min-width: 992px) {

    .ovz-mc-mobile-only {
        display: none !important;
    }
    .ovz-mc-desktop-only {
        display: flex !important;
    }

    .ovz-mc-bar {
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        max-width: 1100px;
        bottom: 0;
        gap: 0;
        border-radius: var(--ovz-radius, 8px) var(--ovz-radius, 8px) 0 0;
        overflow: hidden;
        box-shadow: 0 -2px 20px rgba(0,0,0,0.12);
    }

    /* Override mobile radius on buttons */
    .ovz-mc-bar .ovz-mc-btn:first-child,
    .ovz-mc-bar .ovz-mc-btn:last-child,
    .ovz-mc-cols-1 .ovz-mc-btn:first-child {
        border-radius: 0;
    }

    .ovz-mc-btn {
        padding: 16px 20px;
        min-height: 64px;
    }

    .ovz-mc-btn + .ovz-mc-btn {
        margin-left: 0;
        border-left: 1px solid rgba(255,255,255,0.15);
    }

    /* Hide mobile text */
    .ovz-mc-mobile-text {
        display: none;
    }

    /* Show desktop text */
    .ovz-mc-desktop-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        line-height: 1.3;
    }

    .ovz-mc-line1 {
        font-size: 12px;
        font-weight: 400;
        opacity: 0.9;
        white-space: nowrap;
    }

    .ovz-mc-line2 {
        font-size: 15px;
        font-weight: 700;
        white-space: nowrap;
    }

    .ovz-mc-btn-inner {
        justify-content: center;
        gap: 12px;
    }

    .ovz-mc-icon {
        font-size: 22px;
    }
}

/* ============================================
   SMALL MOBILE (< 400px)
   ============================================ */
@media (max-width: 399px) {
    .ovz-mc-mobile-text {
        font-size: 12px;
    }
    .ovz-mc-icon {
        font-size: 16px;
    }
    .ovz-mc-btn {
        padding: 12px 6px;
        min-height: 48px;
    }
}

/* ============================================
   TABLET (600-991px)
   ============================================ */
@media (min-width: 600px) and (max-width: 991px) {
    .ovz-mc-mobile-text {
        font-size: 15px;
    }
    .ovz-mc-icon {
        font-size: 20px;
    }
    .ovz-mc-btn {
        padding: 14px 16px;
        min-height: 56px;
    }
}

/* ============================================
   BODY PADDING — prevent content overlap
   ============================================ */
body.ovz-mc-active {
    padding-bottom: 60px !important;
}

@media (min-width: 992px) {
    body.ovz-mc-active {
        padding-bottom: 70px !important;
    }
}
