/* =============================================
   RESTO WhatsApp Enquiry — Front-end Styles
   ============================================= */

/* ---- Wrapper ---- */

.resto-wa-wrap {
    margin: 15px 0;
    clear: both;
}

.resto-wa-wrap--inline {
    display: inline-block;
    margin: 0 0 0 10px;
    vertical-align: middle;
    clear: none;
}

.resto-wa-wrap--below {
    display: block;
    margin: 15px 0;
}

/* ---- Base Button ---- */

.resto-wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--resto-wa-bg, #25D366);
    color: var(--resto-wa-text, #fff) !important;
    text-decoration: none !important;
    border: 2px solid var(--resto-wa-bg, #25D366);
    padding: 10px 24px;
    font-size: var(--resto-wa-font-size, 15px);
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: var(--resto-wa-radius, 4px);
    box-sizing: border-box;
    line-height: 1.4;
    white-space: nowrap;
    vertical-align: middle;
}

.resto-wa-btn:hover,
.resto-wa-btn:focus {
    background: var(--resto-wa-bg-hover, #1da851);
    border-color: var(--resto-wa-bg-hover, #1da851);
    color: var(--resto-wa-text, #fff) !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.resto-wa-btn:visited {
    color: var(--resto-wa-text, #fff) !important;
}

.resto-wa-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ---- Icon ---- */

.resto-wa-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ---- Style Variations ---- */

/* Outline */
.resto-wa-btn--outline {
    background: transparent;
    color: var(--resto-wa-bg, #25D366) !important;
}

.resto-wa-btn--outline:hover,
.resto-wa-btn--outline:focus {
    background: var(--resto-wa-bg, #25D366);
    color: var(--resto-wa-text, #fff) !important;
}

.resto-wa-btn--outline:visited {
    color: var(--resto-wa-bg, #25D366) !important;
}

.resto-wa-btn--outline:hover:visited {
    color: var(--resto-wa-text, #fff) !important;
}

/* Pill */
.resto-wa-btn--pill {
    border-radius: 50px !important;
    padding: 10px 28px;
}

/* Full Width (for widget/block usage) */
.resto-wa-btn--full-width {
    display: flex;
    width: 100%;
}

/* ---- Layout: Below (full width block) ---- */

.resto-wa-btn--below {
    display: flex;
    width: 100%;
    max-width: 350px;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
    .resto-wa-wrap--inline {
        display: block;
        margin: 12px 0 0 0;
    }

    .resto-wa-btn--inline {
        display: flex;
        width: 100%;
    }

    .resto-wa-btn--below {
        max-width: none;
    }
}

/* =============================================
   Floating WhatsApp Widget
   ============================================= */

.resto-wa-widget {
    position: fixed;
    z-index: 99999;
    bottom: 24px;
}

.resto-wa-widget--bottom-right {
    right: 24px;
}

.resto-wa-widget--bottom-left {
    left: 24px;
}

.resto-wa-widget-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    border-radius: 50%;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.resto-wa-widget-btn:hover {
    background: #1da851;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.resto-wa-widget-btn:active {
    transform: scale(1.05);
}

.resto-wa-widget-icon {
    fill: #ffffff;
}

/* Size variants */
.resto-wa-widget--small .resto-wa-widget-btn {
    width: 48px;
    height: 48px;
}
.resto-wa-widget--small .resto-wa-widget-icon {
    width: 26px;
    height: 26px;
}

.resto-wa-widget--medium .resto-wa-widget-btn {
    width: 60px;
    height: 60px;
}
.resto-wa-widget--medium .resto-wa-widget-icon {
    width: 32px;
    height: 32px;
}

.resto-wa-widget--large .resto-wa-widget-btn {
    width: 72px;
    height: 72px;
}
.resto-wa-widget--large .resto-wa-widget-icon {
    width: 40px;
    height: 40px;
}

/* Pulse animation on load */
@keyframes resto-wa-pulse {
    0% { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(37, 211, 102, 0); }
}

.resto-wa-widget-btn {
    animation: resto-wa-pulse 2s ease-in-out 3;
}

.resto-wa-widget-btn:hover {
    animation: none;
}

/* Tooltip */
.resto-wa-widget[title] {
    position: fixed;
}

.resto-wa-widget--bottom-right .resto-wa-widget-btn::before {
    content: attr(aria-label);
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.resto-wa-widget--bottom-left .resto-wa-widget-btn::before {
    content: attr(aria-label);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.resto-wa-widget .resto-wa-widget-btn:hover::before {
    opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .resto-wa-widget {
        bottom: 16px;
    }
    .resto-wa-widget--bottom-right {
        right: 16px;
    }
    .resto-wa-widget--bottom-left {
        left: 16px;
    }
    /* Hide tooltip on mobile */
    .resto-wa-widget .resto-wa-widget-btn::before {
        display: none;
    }
}
