/* ── Back in Stock: Notify Wrapper ── */
.mwa-notify-wrapper {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border: 2px solid #fde68a;
    border-radius: 16px;
    position: relative;
}

.rtl .mwa-notify-wrapper,
[dir="rtl"] .mwa-notify-wrapper {
    text-align: right;
}

/* ── Subscribe Button ── */
.mwa-notify-wrapper .openwa-subscribe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #7c3aed 100%);
    background-size: 200% 200%;
    color: #fff;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
    letter-spacing: 0.3px;
    min-width: 180px;
}

.mwa-notify-wrapper .openwa-subscribe-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.45);
    background-position: right center;
}

.mwa-notify-wrapper .openwa-subscribe-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Bell icon via ::before */
.mwa-notify-wrapper .openwa-subscribe-btn::before {
    content: '\f0f3';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 18px;
    animation: mwa-bell-ring 2s ease-in-out infinite;
}

@keyframes mwa-bell-ring {
    0%, 50%, 100% { transform: rotate(0deg); }
    5%, 15% { transform: rotate(15deg); }
    10%, 20% { transform: rotate(-15deg); }
}

/* ── Unsubscribe Button ── */
.mwa-notify-wrapper .openwa-unsubscribe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1.4;
    background: #fff;
    color: #6b7280;
    min-width: 180px;
}

.mwa-notify-wrapper .openwa-unsubscribe-btn:hover {
    background: #fef2f2;
    border-color: #f87171;
    color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.mwa-notify-wrapper .openwa-unsubscribe-btn:active {
    transform: translateY(0);
}

.mwa-notify-wrapper .openwa-unsubscribe-btn::before {
    content: '\f00d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 14px;
}

/* ── Loading State ── */
.mwa-notify-wrapper .openwa-subscribe-btn.loading,
.mwa-notify-wrapper .openwa-unsubscribe-btn.loading {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none !important;
}

.mwa-notify-wrapper .openwa-subscribe-btn.loading::before {
    content: '\f110';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    animation: fa-spin 1s linear infinite;
}

.mwa-notify-wrapper .openwa-unsubscribe-btn.loading::before {
    content: '\f110';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    animation: fa-spin 1s linear infinite;
}

/* ── Status Text ── */
.mwa-notify-wrapper .mwa-status-text {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
}

.mwa-notify-wrapper .mwa-status-text.subscribed {
    color: #7c3aed;
}

.mwa-notify-wrapper .mwa-status-text.subscribed i {
    color: #7c3aed;
    margin-inline-end: 6px;
}

.mwa-notify-wrapper .mwa-status-text.error {
    color: #dc2626;
}

.mwa-notify-wrapper .mwa-status-text.error i {
    color: #dc2626;
    margin-inline-end: 6px;
}

/* ── Spinner ── */
.mwa-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mwa-spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes mwa-spin {
    to { transform: rotate(360deg); }
}

/* ── Phone Input Modal ── */
.mwa-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.mwa-modal-box {
    background: #fff;
    border-radius: 20px;
    padding: 40px 32px 32px;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: mwa-modal-in 0.3s ease;
    text-align: center;
}

@keyframes mwa-modal-in {
    from { transform: translateY(20px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.mwa-modal-close {
    position: absolute;
    top: 12px; inset-inline-end: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
}

.mwa-modal-close:hover { color: #374151; }

.mwa-modal-icon {
    font-size: 48px;
    color: #25D366;
    margin-bottom: 12px;
}

.mwa-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 20px;
}

.mwa-modal-label {
    display: block;
    text-align: start;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 6px;
}

.mwa-modal-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
    transition: border-color 0.2s;
    box-sizing: border-box;
    direction: ltr;
}

.mwa-modal-input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

.mwa-modal-error {
    color: #dc2626;
    font-size: 13px;
    margin: 8px 0 0;
}

.mwa-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.mwa-modal-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.mwa-modal-cancel {
    background: #f3f4f6;
    color: #4b5563;
}

.mwa-modal-cancel:hover { background: #e5e7eb; }

.mwa-modal-confirm {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(124,58,237,0.3);
}

.mwa-modal-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(124,58,237,0.4);
}

.mwa-modal-confirm:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ── Notify Link (for non-logged-in / no phone) ── */
.mwa-notify-link-wrapper {
    margin: 16px 0;
}

.mwa-notify-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #f5f3ff;
    border: 2px solid #c4b5fd;
    border-radius: 12px;
    color: #7c3aed;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mwa-notify-link:hover {
    background: #ede9fe;
    border-color: #a78bfa;
    color: #6d28d9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

.mwa-notify-link i {
    font-size: 16px;
}

/* ── Floating WhatsApp Chat ── */
#mwa-floating-chat {
    position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 9999;
}
#mwa-floating-chat a {
    display: flex; align-items: center; justify-content: center;
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff; font-size: 30px; text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.25s, box-shadow 0.25s;
}
#mwa-floating-chat a:hover {
    transform: scale(1.1); box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
}

/* ── Share on WhatsApp Button ── */
.mwa-share-wa {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; background: #25D366; color: #fff;
    border-radius: 10px; font-size: 14px; font-weight: 600;
    text-decoration: none; transition: background 0.25s, transform 0.2s;
    margin: 6px 0;
}
.mwa-share-wa:hover { background: #128C7E; color: #fff; transform: translateY(-1px); }
.mwa-share-wa i { font-size: 18px; }

/* ── Responsive ── */
@media (max-width: 480px) {
    .mwa-notify-wrapper {
        padding: 16px;
    }
    .mwa-notify-wrapper .openwa-subscribe-btn,
    .mwa-notify-wrapper .openwa-unsubscribe-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
        min-width: unset;
    }
    .mwa-notify-link {
        width: 100%;
        justify-content: center;
    }
}
