/* WIPESTAR Phone Button Styles */

/* ── Device visibility ── */
.wpb-phone-wrap.hidden-mobile { display: none !important; }
.wpb-modal-overlay.hidden-mobile { display: none !important; }
.wpb-phone-wrap.hidden-desktop { display: none !important; }
.wpb-modal-overlay.hidden-desktop { display: none !important; }

@media(max-width:768px) {
    .wpb-phone-wrap.hidden-mobile { display: none !important; }
    .wpb-modal-overlay.hidden-mobile { display: none !important; }
}

@media(min-width:769px) {
    .wpb-phone-wrap.hidden-desktop { display: none !important; }
    .wpb-modal-overlay.hidden-desktop { display: none !important; }
}

/* ── Phone Button ── */
.wpb-phone-wrap {
    position: fixed;
    z-index: 999999;
}

.wpb-phone-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
    transition: all .3s cubic-bezier(.4,0,.2,1);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.wpb-phone-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(0,0,0,.3);
}

.wpb-phone-btn .wpb-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Pulse Animation ── */
.wpb-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%,-50%);
    z-index: -1;
}

@keyframes wpb-ping {
    0% {
        transform: translate(-50%,-50%) scale(1);
        opacity: .7;
    }
    75% {
        transform: translate(-50%,-50%) scale(1.8);
        opacity: 0;
    }
    100% {
        transform: translate(-50%,-50%) scale(1);
        opacity: 0;
    }
}

/* ── Tooltip ── */
.wpb-tooltip {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    background: #1a1a2e;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wpb-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #1a1a2e;
}

.wpb-phone-btn:hover .wpb-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(-4px);
}

/* ── Modal Overlay ── */
.wpb-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
}

.wpb-modal-overlay.wpb-active {
    display: flex;
}

/* ── Modal Card ── */
.wpb-modal {
    background: #fff;
    border-radius: 20px;
    padding: 0;
    width: 380px;
    max-width: 92vw;
    box-shadow: 0 25px 60px rgba(0,0,0,.3);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    position: relative;
    animation: wpb-modal-in .35s cubic-bezier(.4,0,.2,1);
}

@keyframes wpb-modal-in {
    from {
        opacity: 0;
        transform: scale(.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.wpb-modal-top {
    padding: 36px 32px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.wpb-modal-top::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
}

.wpb-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.wpb-modal-icon svg {
    width: 28px;
    height: 28px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wpb-modal-top h3 {
    margin: 0;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.3px;
}

.wpb-modal-body {
    padding: 28px 32px 32px;
}

.wpb-modal-body p {
    margin: 0 0 20px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.wpb-modal-phone {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 16px;
}

.wpb-modal-phone .icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wpb-modal-phone .icon svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
}

.wpb-modal-phone .num {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: .5px;
}

.wpb-modal-phone .hint {
    font-size: 11px;
    color: #a0aec0;
    margin-top: 2px;
}

.wpb-modal-hours {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 22px;
}

.wpb-modal-hours svg {
    width: 16px;
    height: 16px;
    stroke: #a0aec0;
    fill: none;
    stroke-width: 2;
}

.wpb-modal-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    letter-spacing: .3px;
}

.wpb-modal-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,184,148,.35);
}

/* ── Close Button ── */
.wpb-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.18);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s;
    line-height: 1;
    z-index: 10;
}

.wpb-modal-close:hover {
    background: rgba(255,255,255,.35);
    transform: scale(1.1);
}

/* ── Responsive ── */
@media(max-width:600px) {
    .wpb-modal {
        border-radius: 16px;
        width: 94vw;
    }
    .wpb-modal-top {
        padding: 28px 24px 22px;
    }
    .wpb-modal-body {
        padding: 22px 24px 28px;
    }
}

/* ── Custom CSS ── */
/* Custom CSS will be added here via JavaScript */