/* AJ 3D Studio - WhatsApp Order Styles */

/* Hide Coupon Code, Apply Coupon Button, and Standard Proceed to Checkout Button */
.coupon,
.cart-discount,
.checkout_coupon,
.woocommerce-form-coupon,
.woocommerce-form-coupon-toggle,
.wc-proceed-to-checkout a.checkout-button,
.wc-proceed-to-checkout .checkout-button,
a.checkout-button {
    display: none !important;
}

/* Primary WhatsApp Buttons */
.aj-btn-whatsapp-direct,
.aj-btn-whatsapp-cart,
.aj-btn-whatsapp-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    padding: 14px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    margin-top: 10px;
}

.aj-btn-whatsapp-direct:hover,
.aj-btn-whatsapp-cart:hover,
.aj-btn-whatsapp-submit:hover {
    background: linear-gradient(135deg, #20ba5a 0%, #0e7368 100%);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.aj-btn-whatsapp-direct:active,
.aj-btn-whatsapp-cart:active,
.aj-btn-whatsapp-submit:active {
    transform: translateY(0);
}

.aj-wa-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.aj-btn-whatsapp-direct:hover .aj-wa-icon,
.aj-btn-whatsapp-cart:hover .aj-wa-icon,
.aj-btn-whatsapp-submit:hover .aj-wa-icon {
    transform: scale(1.15) rotate(-5deg);
}

/* Single product button spacing */
.aj-btn-single-product-whatsapp {
    margin-top: 12px;
    margin-bottom: 12px;
}

/* Checkout WhatsApp Badge Notice */
.aj-checkout-wa-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-left: 4px solid #25D366;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    color: #e2e8f0;
    font-size: 14px;
}

.aj-checkout-wa-badge svg {
    color: #25D366;
    flex-shrink: 0;
}

/* Modal Overlay & Glassmorphism Container */
.aj-wa-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 15, 29, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.aj-wa-modal-overlay.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.aj-wa-modal-container {
    background: #111827;
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(37, 211, 102, 0.15);
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    color: #f8fafc;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.aj-wa-modal-overlay.active .aj-wa-modal-container {
    transform: scale(1) translateY(0);
}

/* Modal Close Button */
.aj-wa-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #94a3b8;
    font-size: 24px;
    line-height: 1;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.aj-wa-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* Modal Header */
.aj-wa-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 24px 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.aj-wa-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.aj-wa-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.aj-wa-modal-header p {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #94a3b8;
}

/* Modal Body */
.aj-wa-modal-body {
    padding: 20px 24px 24px 24px;
}

/* Order Summary Box */
.aj-wa-summary-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.aj-wa-summary-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #d4af37;
    margin-bottom: 10px;
}

.aj-wa-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 120px;
    overflow-y: auto;
}

.aj-wa-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #cbd5e0;
}

.aj-wa-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
}

.text-gold {
    color: #d4af37 !important;
}

/* Form Styling */
.aj-form-group {
    margin-bottom: 16px;
}

.aj-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 480px) {
    .aj-form-row {
        grid-template-columns: 1fr;
    }
}

.aj-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e0;
    margin-bottom: 6px;
}

.aj-form-group label .required {
    color: #f87171;
}

.aj-form-group input,
.aj-form-group textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 10px 14px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.aj-form-group input:focus,
.aj-form-group textarea:focus {
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}

.aj-form-group input::placeholder,
.aj-form-group textarea::placeholder {
    color: #64748b;
}

.aj-wa-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

/* Floating WhatsApp Quick Action Button */
.aj-wa-floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff !important;
    border-radius: 50px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.aj-wa-floating-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.6);
    color: #ffffff !important;
}

@media (max-width: 600px) {
    .aj-wa-floating-btn {
        bottom: 16px;
        right: 16px;
        padding: 10px 16px;
        font-size: 13px;
    }
}

