/**
 * SP Mailman — Stock Waitlist (frontend)
 * Restrained: lets the theme's typography lead. Pure white background.
 */
.spm-stock-waitlist {
    margin: 24px 0;
    font-family: inherit;
    color: #171717;
}
.spm-stock-waitlist .spm-sw-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-left: 3px solid #2556c4;
    border-radius: 0 8px 8px 0;
    padding: 22px 24px;
    max-width: 520px;
}
.spm-stock-waitlist .spm-sw-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.spm-stock-waitlist .spm-sw-icon {
    font-size: 20px;
    line-height: 1;
}
.spm-stock-waitlist .spm-sw-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #171717;
    letter-spacing: -0.01em;
}
.spm-stock-waitlist .spm-sw-social {
    margin: 4px 0 18px;
    font-size: 12px;
    color: #737373;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.spm-stock-waitlist .spm-sw-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.spm-stock-waitlist .spm-sw-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.spm-stock-waitlist .spm-sw-label {
    font-size: 12px;
    font-weight: 600;
    color: #404040;
    letter-spacing: 0.02em;
}
.spm-stock-waitlist .spm-sw-form input[type="email"],
.spm-stock-waitlist .spm-sw-form input[type="tel"] {
    padding: 10px 12px;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    font-size: 14px;
    background: #ffffff;
    color: #171717;
}
.spm-stock-waitlist .spm-sw-form input[type="email"]:focus,
.spm-stock-waitlist .spm-sw-form input[type="tel"]:focus {
    outline: none;
    border-color: #2556c4;
    box-shadow: 0 0 0 3px rgba(37, 86, 196, 0.12);
}
.spm-stock-waitlist .spm-sw-tcpa {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: #737373;
    line-height: 1.5;
    align-items: flex-start;
    cursor: pointer;
}
.spm-stock-waitlist .spm-sw-tcpa input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}
.spm-stock-waitlist .spm-sw-checkbox {
    display: flex;
    gap: 8px;
    font-size: 14px;
    color: #171717;
    align-items: center;
    cursor: pointer;
}
.spm-stock-waitlist .spm-sw-submit {
    padding: 12px 22px;
    background: #171717;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.15s ease;
    align-self: flex-start;
}
.spm-stock-waitlist .spm-sw-submit:hover {
    background: #2556c4;
}
.spm-stock-waitlist .spm-sw-submit[disabled] {
    background: #a3a3a3;
    cursor: not-allowed;
}
.spm-stock-waitlist .spm-sw-feedback {
    font-size: 13px;
    min-height: 18px;
}
.spm-stock-waitlist .spm-sw-feedback.is-error {
    color: #b91c1c;
}
.spm-stock-waitlist .spm-sw-feedback.is-ok {
    color: #047857;
}
.spm-stock-waitlist.is-done .spm-sw-form > *:not(.spm-sw-feedback) {
    display: none;
}

/* ============================================================
 * Shop-loop modal — opens when "Notify Me" is clicked on a card
 * ============================================================ */
.spm-sw-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.spm-sw-modal.is-open { display: flex; }
.spm-sw-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 20, 0.55);
    backdrop-filter: blur(2px);
}
.spm-sw-modal-card {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.3);
    padding: 28px 28px 24px;
    max-width: 460px;
    width: 100%;
    font-family: inherit;
    color: #171717;
    z-index: 1;
    animation: spm-sw-modal-in 180ms ease-out;
}
@keyframes spm-sw-modal-in {
    from { transform: translateY(8px); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
}
.spm-sw-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #737373;
    cursor: pointer;
    padding: 4px 8px;
}
.spm-sw-modal-close:hover { color: #171717; }
.spm-sw-modal .spm-sw-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}
.spm-sw-modal .spm-sw-icon { font-size: 22px; line-height: 1; }
.spm-sw-modal .spm-sw-title {
    margin: 0;
    font-size: 19px;
    font-weight: 600;
    color: #171717;
    letter-spacing: -0.01em;
}
.spm-sw-modal-product {
    margin: 4px 0 18px;
    font-size: 14px;
    color: #404040;
}
.spm-sw-modal .spm-sw-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.spm-sw-modal .spm-sw-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.spm-sw-modal .spm-sw-label {
    font-size: 12px;
    font-weight: 600;
    color: #404040;
}
.spm-sw-modal input[type="email"],
.spm-sw-modal input[type="tel"] {
    padding: 10px 12px;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    font-size: 14px;
    background: #ffffff;
    color: #171717;
}
.spm-sw-modal input[type="email"]:focus,
.spm-sw-modal input[type="tel"]:focus {
    outline: none;
    border-color: #2556c4;
    box-shadow: 0 0 0 3px rgba(37, 86, 196, 0.12);
}
.spm-sw-modal .spm-sw-tcpa {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: #737373;
    line-height: 1.5;
    align-items: flex-start;
    cursor: pointer;
}
.spm-sw-modal .spm-sw-tcpa input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}
.spm-sw-modal .spm-sw-submit {
    padding: 12px 22px;
    background: #171717;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    align-self: stretch;
}
.spm-sw-modal .spm-sw-submit:hover { background: #2556c4; }
.spm-sw-modal .spm-sw-submit[disabled] { background: #a3a3a3; cursor: not-allowed; }
.spm-sw-modal .spm-sw-feedback {
    font-size: 13px;
    min-height: 18px;
}
.spm-sw-modal .spm-sw-feedback.is-error { color: #b91c1c; }
.spm-sw-modal .spm-sw-feedback.is-ok    { color: #047857; }
.spm-sw-modal.is-done .spm-sw-form > *:not(.spm-sw-feedback) { display: none; }

/* Loop "Notify Me" button — inherits theme button shape, override only color
   to signal it's a different action than Add to Cart. */
.spm-sw-notify-trigger {
    background: #171717 !important;
    color: #ffffff !important;
    cursor: pointer !important;
}
.spm-sw-notify-trigger:hover {
    background: #2556c4 !important;
}
