/**
 * Recarga WhatsApp Directo - Frontend Styles
 * Lightweight, modern, responsive styles with zero jQuery dependency.
 */

:root {
    --rwd-green: #00ce1b;
    --rwd-green-hover: #00e81e;
    --rwd-whatsapp: #25D366;
    --rwd-whatsapp-hover: #20ba5a;
    --rwd-text-dark: #0f1419;
}

/* Container */
.rwd-product-container {
    margin: 18px 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
}

/* Player ID Field */
.rwd-player-id-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.rwd-player-id-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: inherit;
    opacity: 0.9;
    letter-spacing: 0.3px;
}

.rwd-player-id-label svg {
    flex-shrink: 0;
}

.rwd-player-id-input {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    border-radius: 8px !important;
    border: 1.5px solid rgba(0, 206, 27, 0.4) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: inherit !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

.rwd-player-id-input:focus {
    border-color: #00ce1b !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 0 3px rgba(0, 206, 27, 0.25) !important;
}

.rwd-player-id-input::placeholder {
    color: inherit;
    opacity: 0.5;
}

/* Main Button */
.rwd-whatsapp-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 14px 22px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    text-align: center !important;
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
    box-shadow: 0 4px 14px rgba(0, 206, 27, 0.35) !important;
    line-height: 1.2 !important;
}

.rwd-whatsapp-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 206, 27, 0.45) !important;
    filter: brightness(1.06) !important;
    text-decoration: none !important;
}

.rwd-whatsapp-btn:active {
    transform: translateY(0) !important;
}

.rwd-whatsapp-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    fill: currentColor;
}

/* Subtle Pulse Animation */
.rwd-pulse-effect {
    animation: rwd-pulse 2.2s infinite;
}

@keyframes rwd-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 206, 27, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 206, 27, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 206, 27, 0);
    }
}

/* Subtext / Guarantee under button */
.rwd-guarantee-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    opacity: 0.8;
    text-align: center;
    margin-top: 2px;
}

.rwd-guarantee-text svg {
    flex-shrink: 0;
    fill: #00ce1b;
}

/* Loop / Archive Button (Catalog) */
.rwd-loop-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    border: none !important;
    box-sizing: border-box !important;
    margin-top: 8px !important;
    transition: filter 0.2s ease, transform 0.15s ease !important;
}

.rwd-loop-btn:hover {
    filter: brightness(1.1) !important;
    transform: translateY(-1px) !important;
}

.rwd-loop-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Forceful Overrides for Hiding WooCommerce Standard Cart & Bloat */
body.rwd-hide-add-to-cart .single_add_to_cart_button,
body.rwd-hide-add-to-cart button[name="add-to-cart"],
body.rwd-hide-add-to-cart form.cart .single_add_to_cart_button,
body.rwd-hide-add-to-cart .ct-cart-actions .single_add_to_cart_button {
    display: none !important;
}

body.rwd-hide-quantity .quantity,
body.rwd-hide-quantity form.cart .quantity,
body.rwd-hide-quantity .ct-cart-actions .quantity {
    display: none !important;
}

/* Hide Mobbex Financing Widget if option enabled */
body.rwd-hide-mobbex #mbbx-finance-widget,
body.rwd-hide-mobbex .mobbex-finance-widget,
body.rwd-hide-mobbex .mbbx-banner {
    display: none !important;
}

/* Clean up remnants of broken oneclick-whatsapp-order if still active */
body .wa-button-gdpr2,
body .wa-order-gdprchk,
body .wa-order-button,
body .wa-order-button-under-atc {
    display: none !important;
}
