/*
|--------------------------------------------------------------------------
| MDD Reviews Section
|--------------------------------------------------------------------------
| Styles the reviews tab, review cards, review summary, moderation area,
| and review submission form for Mobile Detailers Directory listings.
|--------------------------------------------------------------------------
*/

/*
|--------------------------------------------------------------------------
| MDD Reviews Main Wrapper
|--------------------------------------------------------------------------
| Adds the outer card styling around the full reviews tab content.
|--------------------------------------------------------------------------
*/

.mdd-reviews-section {
    margin-top: 10px !important;
    padding: 24px !important;
    background: #ffffff !important;
    border: 1px solid #dce6f2 !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,.06) !important;
}

/*
|--------------------------------------------------------------------------
| MDD Review Form Stronger Wrapper
|--------------------------------------------------------------------------
| Ensures the form card styling wins against template defaults.
|--------------------------------------------------------------------------
*/

.mdd-reviews-section .mdd-review-form {
    margin-top: 28px !important;
    padding: 22px !important;
    background: #f7f9fc !important;
    border: 1px solid #dce6f2 !important;
    border-radius: 12px !important;
}

/*
|--------------------------------------------------------------------------
| Review Summary
|--------------------------------------------------------------------------
*/

.mdd-review-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 18px;
    background: #f7f9fc;
    border: 1px solid #dce6f2;
    border-radius: 12px;
}

.mdd-review-summary-rating {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4169E1;
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    border-radius: 50%;
}

.mdd-review-summary-stars {
    color: #f4a100;
    font-size: 20px;
    line-height: 1.2;
}

.mdd-review-summary-count {
    color: #444444;
    font-size: 15px;
}

/*
|--------------------------------------------------------------------------
| Published Review Cards
|--------------------------------------------------------------------------
*/

.mdd-review-list {
    display: grid;
    gap: 16px;
    margin-bottom: 28px;
}

.mdd-review-card {
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.mdd-review-header {
    margin-bottom: 8px;
}

.mdd-review-stars {
    color: #f4a100;
    font-size: 18px;
    line-height: 1.2;
}

.mdd-review-title {
    margin-top: 4px;
    font-size: 17px;
    font-weight: 700;
    color: #222222;
}

.mdd-review-meta {
    margin-bottom: 10px;
    color: #666666;
    font-size: 14px;
}

.mdd-review-text {
    color: #222222;
    line-height: 1.6;
}

/*
|--------------------------------------------------------------------------
| Empty Reviews Message
|--------------------------------------------------------------------------
*/

.mdd-review-empty {
    margin-bottom: 24px;
    padding: 16px;
    background: #f9f9f9;
    border: 1px dashed #cccccc;
    border-radius: 10px;
    color: #555555;
}

/*
|--------------------------------------------------------------------------
| Pending Review Admin Box
|--------------------------------------------------------------------------
*/

.mdd-review-admin-box {
    margin: 28px 0;
    padding: 20px;
    background: #fff8e5;
    border: 1px solid #f0d48a;
    border-radius: 12px;
}

.mdd-review-admin-title {
    margin-bottom: 16px;
}

.mdd-review-pending-card {
    background: #ffffff;
    border-color: #edd184;
}

.mdd-review-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.mdd-review-approve-button,
.mdd-review-delete-button {
    border: 0;
    padding: 8px 14px;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 600;
}

.mdd-review-approve-button {
    background: #198754;
}

.mdd-review-delete-button {
    background: #b00020;
}

/*
|--------------------------------------------------------------------------
| Review Form
|--------------------------------------------------------------------------
*/

.mdd-review-form {
    margin-top: 28px;
    padding: 22px;
    background: #f7f9fc;
    border: 1px solid #dce6f2;
    border-radius: 12px;
}

.mdd-review-form-row {
    margin-bottom: 16px;
}

.mdd-review-form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: #222222;
}

.mdd-review-form-row input,
.mdd-review-form-row select,
.mdd-review-form-row textarea {
    width: 100%;
    max-width: 720px;
    padding: 10px 12px;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    background: #ffffff;
}

.mdd-review-form-row textarea {
    min-height: 130px;
}

.mdd-review-submit {
    border: 0;
    padding: 10px 18px;
    background: #4169E1;
    color: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
}

/*
|--------------------------------------------------------------------------
| Honeypot Anti-Spam Field
|--------------------------------------------------------------------------
| Hidden from normal users but available for spam-bot detection.
|--------------------------------------------------------------------------
*/

.mdd-review-honeypot {
    display: none;
}

/*
|--------------------------------------------------------------------------
| Mobile Adjustments
|--------------------------------------------------------------------------
*/

@media (max-width: 575.98px) {
    .mdd-review-summary {
        align-items: flex-start;
    }

    .mdd-review-summary-rating {
        width: 54px;
        height: 54px;
        font-size: 22px;
    }
}