/* WooCommerce WhatsApp Paraguay Pro — Frontend CSS */

/* ─── BOTÓN FLOTANTE ─── */
.wwpp-floating-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99999;
}

.wwpp-floating-btn a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--wa-color, #25D366);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37,211,102,.45);
    text-decoration: none;
    position: relative;
    transition: transform .2s, box-shadow .2s;
}

.wwpp-floating-btn a:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37,211,102,.6);
}

.wwpp-floating-btn svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.wwpp-floating-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--wa-color, #25D366);
    opacity: .6;
    animation: wwpp-pulse 2s ease-out infinite;
    pointer-events: none;
}

@keyframes wwpp-pulse {
    0%   { transform: scale(1); opacity: .6; }
    100% { transform: scale(1.7); opacity: 0; }
}

.wwpp-floating-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #1a1a1a;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    font-weight: 600;
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.wwpp-floating-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right: none;
    border-left-color: #1a1a1a;
}

.wwpp-floating-btn:hover .wwpp-floating-tooltip {
    opacity: 1;
}

/* ─── THANK YOU PAGE ─── */
.wwpp-thankyou-box {
    background: white;
    border-radius: 12px;
    padding: 28px;
    margin: 24px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    border-left: 5px solid #25D366;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.wwpp-thankyou-box h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #1a1f2e;
}

.wwpp-bank-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: 15px;
}

.wwpp-bank-table th {
    text-align: left;
    padding: 8px 16px 8px 0;
    color: #6b7280;
    font-weight: 600;
    width: 140px;
    vertical-align: top;
}

.wwpp-bank-table td {
    padding: 8px 0;
    color: #1a1f2e;
}

.wwpp-bank-table strong {
    font-size: 16px;
    color: #1a1f2e;
}

.wwpp-note {
    background: #fef9c3;
    border: 1px solid #fde047;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #92400e;
    margin: 14px 0;
}

/* ─── BOTÓN WHATSAPP ─── */
.wwpp-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white !important;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all .2s;
    box-shadow: 0 4px 16px rgba(37,211,102,.35);
}

.wwpp-btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,211,102,.45);
    color: white !important;
}

.wwpp-btn-whatsapp.wwpp-btn-big {
    font-size: 17px;
    padding: 14px 32px;
}

/* ─── REDIRECT BOX ─── */
.wwpp-whatsapp-redirect {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px solid #86efac;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin: 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.wwpp-wa-icon-big {
    font-size: 56px;
    margin-bottom: 12px;
    animation: wwpp-bounce .6s ease infinite alternate;
}

@keyframes wwpp-bounce {
    from { transform: translateY(0); }
    to   { transform: translateY(-8px); }
}

.wwpp-whatsapp-redirect h3 {
    font-size: 22px;
    font-weight: 800;
    color: #15803d;
    margin: 0 0 8px;
}

.wwpp-whatsapp-redirect p {
    color: #166534;
    font-size: 15px;
    margin: 0 0 20px;
}

/* ─── ICONOS EN CHECKOUT ─── */
.wwpp-payment-icon {
    font-size: 20px;
    margin-right: 4px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
    .wwpp-floating-btn {
        bottom: 16px;
        right: 16px;
    }
    .wwpp-thankyou-box {
        padding: 20px;
    }
    .wwpp-bank-table th {
        width: 100px;
    }
}
