/* ── Restock Notifier – frontend widget ── */

.rn-hidden { display: none !important; }

.rn-widget {
    margin: 0 0 1.5rem;
    padding: 1.1rem 1.25rem;
    background: #fdf8f6;
    border: 1px solid #e8ddd8;
    border-radius: 6px;
    font-family: inherit;
}

.rn-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
    color: inherit;
}

.rn-sub {
    font-size: 13px;
    color: #777;
    margin: 0 0 .85rem;
    line-height: 1.55;
}

.rn-form {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.rn-form input[type="email"] {
    flex: 1;
    min-width: 180px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
    color: inherit;
    outline: none;
    transition: border-color .15s;
}

.rn-form input[type="email"]:focus {
    border-color: #a08070;
}

.rn-form button {
    padding: 8px 16px;
    background: #5c4a42;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}

.rn-form button:hover  { background: #3e3029; }
.rn-form button:active { transform: scale(.98); }
.rn-form button:disabled { opacity: .5; cursor: default; }

.rn-msg {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.5;
    min-height: 18px;
}

.rn-msg.success { color: #5a7a3a; }
.rn-msg.error   { color: #a04040; }

@media (max-width: 480px) {
    .rn-form { flex-direction: column; }
    .rn-form input[type="email"],
    .rn-form button { width: 100%; }
}
