/* === Overlay for the inner modal (modal inside reviews popup) === */
.review-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000; /* Higher than main popup */
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* === Reuse your original .vendor-review-form styles === */
.vendor-review-form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin: 0;
    border: 2px solid #dcdcdc;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

.vendor-review-form h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: left;
}

.vendor-review-form label {
    display: block;
    font-weight: bold;
    color: #555;
    font-size: 14px;
    margin-bottom: 8px;
    margin-top: 15px;
}

.vendor-review-form label:first-of-type {
    margin-top: 0;
}

.vendor-review-form select,
.vendor-review-form input[type="text"],
.vendor-review-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.vendor-review-form select:focus,
.vendor-review-form input[type="text"]:focus,
.vendor-review-form textarea:focus {
    outline: none;
    border-color: #005959;
    background: white;
}

.vendor-review-form form {
    margin-top: 20px;
}

.vendor-review-form textarea {
    resize: vertical;
    min-height: 100px;
}

.vendor-review-form button[type="submit"],
.edit-review-button , #open-add-review-modal{
    background: #005959;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.edit-review-button, #open-add-review-modal{
    margin-left: 0 !important;
    margin-right: auto;
}

.vendor-review-form button[type="submit"]:hover,
.edit-review-button:hover, #open-add-review-modal:hover,
.vendor-review-form button[type="submit"]:focus,
.edit-review-button:focus, #open-add-review-modal:focus,
.vendor-review-form button[type="submit"]:active,
.edit-review-button:active, #open-add-review-modal:active {
    background-color: #005959 !important;
    color: white !important;
    border: none !important;
    outline: none;
    box-shadow: none;
}

/* Star rating */
.vendor-review-form .star-wrapper {
    display: inline-flex;
    gap: 5px;
    cursor: pointer;
    margin: 5px 0;
}

.vendor-review-form .star {
    font-size: 24px;
    color: #ccc;
    transition: color 0.2s ease-in-out;
}

.vendor-review-form .star.hovered,
.vendor-review-form .star.selected {
    color: #FFB800;
}

/* Response messages */
#review-modal-response {
    margin-top: 15px;
    padding: 15px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

/* Close button inside modal */
.vendor-review-form .close-review-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
}

.vendor-review-form .close-review-modal:hover {
    color: #333;
}

/* .no-reviews-message {
    background-color:#005959 ;
    text-align: center;
    padding: 10px 20px;
    color: white;
    border-radius: 10px;
    border : 2px solid #dcdcdc
} */

.no-reviews-message p {
    margin: 5px 0;
    font-size: 18px;
}

.no-reviews-subtitle {
    font-size: 14px !important;
    color: #333333;
}
/* === Responsive === */
@media (max-width: 768px) {
    .vendor-review-form {
        width: 100%;
        padding: 15px;
        max-width: none;
    }

    .review-modal-overlay {
        padding: 10px;
    }

    .vendor-review-form h3 {
        font-size: 16px;
    }

    .vendor-review-form button[type="submit"] {
        padding: 10px 20px;
        font-size: 14px;
    }
}