/**
 * SFMA Smart Waitlist Stylesheet
 * @version 1.23.0
 */

.sfma-waitlist-container {
    margin: 20px 0;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    direction: rtl;
    text-align: right;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    font-family: inherit;
    transition: all 0.3s ease;
}

.sfma-waitlist-container:hover {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.08);
}

.sfma-wl-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.sfma-wl-bell-icon {
    font-size: 24px;
    line-height: 1;
    animation: sfma-bell-pulse 2s infinite ease-in-out;
}

@keyframes sfma-bell-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15) rotate(8deg); }
}

.sfma-wl-title-wrap {
    flex: 1;
}

.sfma-wl-title {
    margin: 0 0 4px 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    line-height: 1.3 !important;
}

.sfma-wl-subtitle {
    margin: 0 !important;
    font-size: 13px !important;
    color: #64748b !important;
    line-height: 1.4 !important;
}

.sfma-wl-fields-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.sfma-wl-input-group {
    position: relative;
    flex: 1 1 200px;
    display: flex;
    align-items: center;
}

.sfma-wl-input-icon {
    position: absolute;
    right: 12px;
    font-size: 15px;
    pointer-events: none;
    z-index: 2;
}

.sfma-wl-input {
    width: 100% !important;
    padding: 10px 38px 10px 14px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    font-size: 13.5px !important;
    color: #1e293b !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.sfma-wl-input:focus {
    border-color: #2563eb !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.sfma-wl-btn {
    padding: 10px 22px !important;
    background: #16a34a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background-color 0.2s, transform 0.1s !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
}

.sfma-wl-btn:hover {
    background: #15803d !important;
    transform: translateY(-1px);
}

.sfma-wl-btn:active {
    transform: translateY(0);
}

.sfma-wl-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed !important;
}

.sfma-wl-channel-toggle {
    margin-top: 8px;
    font-size: 12px;
}

.sfma-wl-toggle-link {
    color: #3b82f6;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
}

.sfma-wl-toggle-link:hover {
    text-decoration: underline;
}

.sfma-wl-notice {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    animation: sfma-fade-in 0.3s ease;
}

.sfma-wl-notice.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.sfma-wl-notice.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

@keyframes sfma-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .sfma-wl-fields-row {
        flex-direction: column;
    }
    .sfma-wl-btn {
        width: 100% !important;
    }
}
