/**
 * WooPlus Stock Reminder — frontend form styles.
 *
 * Intentionally minimal — picks up the theme's button & input
 * styles where possible, only overrides what's needed for the
 * collapsible bell-icon "موجود شد، اطلاع بده" trigger.
 */

.wpsr-widget {
    margin: 14px 0;
    direction: rtl;
    text-align: right;
}

.wpsr-details {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0;
    background: #fafbfc;
    overflow: hidden;
}

.wpsr-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    list-style: none;
    transition: opacity .15s;
}
.wpsr-summary::-webkit-details-marker { display: none; }
.wpsr-summary:hover { opacity: .92; }

.wpsr-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
}

.wpsr-form {
    padding: 14px 16px 16px;
    background: #fff;
}

.wpsr-field {
    display: block;
    margin-bottom: 10px;
}
.wpsr-field > span {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 500;
}
.wpsr-field input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font: inherit;
    font-size: 13px;
    background: #fff;
    box-sizing: border-box;
}
.wpsr-field input:focus {
    outline: 2px solid #c7d2fe;
    outline-offset: 1px;
    border-color: #6366f1;
}

.wpsr-submit {
    display: inline-block;
    padding: 9px 18px;
    background: #6366f1;
    color: #fff;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    transition: background .15s;
}
.wpsr-submit:hover  { background: #4f46e5; }
.wpsr-submit:disabled { opacity: .6; cursor: wait; }

.wpsr-msg {
    margin-top: 10px;
    font-size: 13px;
    min-height: 18px;
}
.wpsr-msg--ok    { color: #10b981; font-weight: 600; }
.wpsr-msg--error { color: #ef4444; }

/* Loop-mode = compact (no big purple summary, just a small chip) */
.wpsr-widget--loop .wpsr-details { background: transparent; border: 0; }
.wpsr-widget--loop .wpsr-summary {
    background: #ede9fe;
    color: #4f46e5;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}
.wpsr-widget--loop .wpsr-icon {
    background: rgba(99,102,241,0.15);
    color: #4f46e5;
}
.wpsr-widget--loop .wpsr-form {
    padding: 10px 0 0;
    background: transparent;
}
