/* עיצוב בולט לטקסט אזל מהמלאי */
p.stock.out-of-stock, 
.woocommerce-out-of-stock, 
.out-of-stock {
    color: #dc3232 !important;
    font-weight: bold !important;
    font-size: 1.1em;
}

/* אזור כפתור ההרשמה בדף המוצר */
.wwwl-waiting-list-wrapper {
    margin: 10px 0;
}

/* כפתור פתיחת חלון ההרשמה - צבע אדום */
.wwwl-open-modal-btn {
    background-color: #dc3232 !important;
    color: #fff !important;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    text-align: center;
    transition: background 0.3s;
    display: inline-block;
    margin: 5px 0 15px 0;
}

.wwwl-open-modal-btn:hover {
    background-color: #b32d2d !important;
}

/* רקע החלון הצף (Modal Backdrop) */
.wwwl-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

/* תוכן החלון הצף */
.wwwl-modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    direction: rtl;
    text-align: right;
}

/* כפתור סגירה (X) בחלון */
.wwwl-close-modal {
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 22px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.wwwl-close-modal:hover {
    color: #000;
}

/* שדות בתוך החלון */
.wwwl-modal-content label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.wwwl-modal-content input[type="text"],
.wwwl-modal-content input[type="tel"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

/* ולידציה ויזואלית בשדה הטלפון */
.wwwl-modal-content input#wwwl_phone.input-error {
    border-color: #dc3232 !important;
    background-color: #fff8f8;
}

.wwwl-modal-content input#wwwl_phone.input-success {
    border-color: #46b450 !important;
    background-color: #f8fff8;
}

/* כפתור השליחה בתוך החלון - ירוק */
.wwwl-modal-content button[type="submit"] {
    background-color: #25d366 !important;
    color: #fff !important;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.wwwl-modal-content button[type="submit"]:hover {
    background-color: #128c7e !important;
}

#wwwl-frontend-msg {
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
    display: none;
    text-align: center;
}
#wwwl-frontend-msg.error {
    background-color: #ffebee;
    color: #c62828;
}
#wwwl-frontend-msg.success {
    background-color: #e8f5e9;
    color: #2e7d32;
}