﻿/* ===========================
   Modal Backdrop
=========================== */
.modal-backdrop.show {
    opacity: .75;
}

/* ===========================
   Modal
=========================== */
.review-modal {
    position: relative;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.20);
    background: #fff;
}

    .review-modal .modal-body {
        padding: 30px;
        max-height: 75vh;
        overflow-y: auto;
        padding-right: 80px; /* Space for close button */
    }

/* ===========================
   Close Button
=========================== */
.review-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #f5f5f5;
    color: #555;
    font-size: 28px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    transition: all .3s ease;
    z-index: 1000;
}

    .review-close:hover {
        background: #ea4335;
        color: #fff;
        transform: rotate(90deg);
    }

/* ===========================
   Header
=========================== */
.review-avatar {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 50%;
    background: #c94b11;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.review-name {
    font-size: 22px;
    font-weight: 700;
    color: #202124;
}

.review-date {
    color: #757575;
    font-size: 15px;
}

.review-stars {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    color: #fbbc04;
}
    .review-stars span {
        font-size: 15px;
        color: #fbbc04;
    }

.verified-icon {
    width: 20px;
    height: 20px;
}

.google-logo {
    width: 34px;
    height: 34px;
    margin-right: 35px; /* Prevent overlap with close button */
    flex-shrink: 0;
}

/* ===========================
   Review Content
=========================== */
.review-content {
    margin-top: 20px;
}

    .review-content p {
        margin: 0;
        font-size: 18px;
        line-height: 1.8;
        color: #333;
    }

/* ===========================
   Scrollbar
=========================== */
.review-modal .modal-body::-webkit-scrollbar {
    width: 8px;
}

.review-modal .modal-body::-webkit-scrollbar-thumb {
    background: #d5d5d5;
    border-radius: 10px;
}

.review-modal .modal-body::-webkit-scrollbar-track {
    background: #f5f5f5;
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 768px) {

    .modal-dialog {
        margin: 15px;
    }

    .review-modal .modal-body {
        padding: 20px;
        padding-right: 55px;
    }

    .review-avatar {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 20px;
    }

    .review-name {
        font-size: 18px;
    }

    .review-date {
        font-size: 13px;
    }

    .review-stars {
        font-size: 18px;
    }

    .verified-icon {
        width: 18px;
        height: 18px;
    }

    .google-logo {
        width: 28px;
        height: 28px;
        margin-right: 30px;
    }

    .review-content p {
        font-size: 16px;
        line-height: 1.7;
    }

    .review-close {
        width: 34px;
        height: 34px;
        line-height: 34px;
        font-size: 24px;
        top: 15px;
        right: 15px;
    }
}
