/* ==========================================================================
   Order on WhatsApp – Frontend Styles
   ========================================================================== */

/* ── Base button ──────────────────────────────────────────────────────────── */
.oow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    border: 2px solid transparent;
    transition: filter 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.oow-btn:hover,
.oow-btn:focus {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    text-decoration: none !important;
}

.oow-btn:active {
    transform: translateY(0);
}

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

/* ── Product page button ──────────────────────────────────────────────────── */
.oow-product-btn {
    margin-top: 10px;
    width: 100%;
    max-width: 340px;
}

/* ── Cart page button ─────────────────────────────────────────────────────── */
.oow-cart-btn {
    display: flex;
    width: 100%;
    margin-top: 12px;
    padding: 14px 22px;
}

/* ── Thank-you page notice ────────────────────────────────────────────────── */
.oow-thankyou-notice {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    background: #f0fdf4;
    border: 1.5px solid #22c55e;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 24px;
    color: #15803d;
}

.oow-thankyou-notice svg {
    color: #22c55e;
}

.oow-thankyou-notice p {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
}

.oow-thankyou-btn {
    background-color: #25D366 !important;
    color: #fff !important;
    border-color: #25D366 !important;
    padding: 13px 28px;
    font-size: 16px;
}

.oow-countdown {
    display: inline-block;
    background: #22c55e;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    text-align: center;
    line-height: 22px;
    font-size: 13px;
    font-weight: 700;
    margin-left: 4px;
}

/* ── Price replacement ────────────────────────────────────────────────────── */
.oow-price-replacement {
    color: #555;
    font-style: italic;
    font-size: 0.95em;
}

/* ── Floating button ──────────────────────────────────────────────────────── */
.oow-floating {
    position: fixed;
    bottom: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.oow-floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.oow-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.65);
    color: #fff;
}

.oow-floating-btn svg {
    width: 32px;
    height: 32px;
}

.oow-floating-tooltip {
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 13px;
    padding: 5px 11px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}

.oow-floating:hover .oow-floating-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .oow-product-btn {
        max-width: 100%;
    }
}
