/* WooCommerce Egypt Fast Checkout & WhatsApp Popup */
.wefc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.wefc-modal-card {
    background: #ffffff;
    color: #0f172a;
    width: 100%;
    max-width: 460px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 24px;
    position: relative;
    font-family: 'Cairo', system-ui, -apple-system, sans-serif;
    animation: wefcFadeIn 0.2s ease-out;
}

@keyframes wefcFadeIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.wefc-close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    color: #475569;
    transition: all 0.15s;
}
.wefc-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.wefc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #065f46;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.wefc-badge-oos {
    background: #fef2f2;
    color: #991b1b;
}
.wefc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
}
.wefc-badge-oos .wefc-dot {
    background: #ef4444;
}

.wefc-product-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 16px;
}
.wefc-product-preview img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}
.wefc-product-preview h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}
.wefc-price-tag {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #2563eb;
}

.wefc-alert-box {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    color: #92400e;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}
.wefc-alert-box p {
    margin: 4px 0 0 0;
}

.wefc-form-group {
    margin-bottom: 16px;
    text-align: left;
}
[dir="rtl"] .wefc-form-group {
    text-align: right;
}
.wefc-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}
.wefc-req {
    color: #ef4444;
}

.wefc-phone-input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}
.wefc-phone-input-wrap:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.wefc-country-flag {
    padding: 10px 12px;
    background: #f1f5f9;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    border-right: 1px solid #cbd5e1;
}
[dir="rtl"] .wefc-country-flag {
    border-right: none;
    border-left: 1px solid #cbd5e1;
}
.wefc-phone-input-wrap input {
    width: 100%;
    border: none;
    outline: none;
    padding: 10px 12px;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}

.wefc-form-group select,
.wefc-form-group input[type="text"],
.wefc-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}
.wefc-form-group select:focus,
.wefc-form-group input:focus,
.wefc-form-group textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.wefc-help-text {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
    display: block;
}

/* Prompt Requested Blue Button for Next */
.wefc-btn-blue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    background: #2563eb;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transition: background 0.15s, transform 0.1s;
}
.wefc-btn-blue:hover {
    background: #1d4ed8;
}
.wefc-btn-blue:active {
    transform: scale(0.99);
}

.wefc-btn-green {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: #16a34a;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
    transition: background 0.15s;
}
.wefc-btn-green:hover {
    background: #15803d;
}

.wefc-btn-ghost {
    background: none;
    border: none;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-size: 13px;
}
.wefc-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.wefc-step-indicator {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.wefc-payment-badge {
    background: #f0fdf4;
    border: 1px dashed #86efac;
    color: #166534;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 16px;
}

.wefc-success-icon {
    width: 60px;
    height: 60px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 12px;
}
.wefc-btn-whatsapp-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: #25d366;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 14px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}
