/* =========================
   General Product Rating Styles
   ========================= */

.wcr-product-rating {
    display: flex;
    align-items: baseline; /* Align stars and link along the baseline on desktop */
}

/* Stars and Rating Text */
.wcr-stars {
    font-size: 1.3em;
    margin-right: 10px;
}

.wcr-stars .star {
    color: gold; /* Apply gold color only to the stars */
}

.wcr-stars .rating-text {
    color: black;        /* Ensure the rating text is black */
    margin-left: 10px;   /* Space between stars and rating text */
    vertical-align: middle;
    display: inline-block;
    font-size: 0.8em;
}

/* "Read all Reviews" Link */
.wcr-view-all-reviews {
    color: #0073aa;
    text-decoration: none;
    margin-left: 5px; 
    font-weight: 600;
}

.wcr-view-all-reviews:hover, .leave-review-link:hover {
    color: #005177;
}

/* Mobile Adjustments */
@media (max-width: 1349px) {
    .wcr-product-rating {
        flex-direction: column; /* Stack stars/rating and link vertically */
        align-items: center;
        margin-top: -1em;
    }

    .wcr-stars {
        font-size: 2em;
        text-align: center;
        width: auto;
    }

    .wcr-stars .rating-text {
        font-size: 0.6em; /* Slightly smaller rating text on mobile */
    }

    .wcr-view-all-reviews {
        display: block;     /* Put link on its own line below the rating */
        text-align: center;
        margin-left: 0;     /* Remove left margin for centering */
        margin-top: -0.6em;    /* Tuck it closer under the rating */
        margin-bottom: 0;   /* Remove extra bottom margin */
        font-weight: 600;
    }
}

/* =========================
   Individual Review Styles
   ========================= */

.wcr-review {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.wcr-profile-photo {
    flex: 0 0 80px;
    margin-right: 15px;
}

.wcr-profile-photo img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.wcr-review-content {
    flex: 1;
}

.wcr-review h3 {
    margin: 0;
    font-size: 1.2em;
}

.wcr-review .verified-purchase {
    color: green;
    font-size: 0.9em;
    font-weight: normal;
}

.wcr-review .wcr-review-date {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 0;
}

.wcr-review .wcr-review-rating {
    font-size: 1.0em;
    color: gold; /* Stars within the review remain gold */
}

@media (max-width: 1349px) {
    .wcr-review h3 {
        display: block;
    }

    .verified-purchase {
        display: block;
    }
}

/* =========================
   Installation Photo Styles
   ========================= */

.wcr-installation-photo {
    margin-top: 10px;
}

.wcr-installation-photo img {
    border-radius: 8px;
    max-width: 250px;
    width: 30%;
    max-height: 100px;
}

.wcr-installation-photo p {
    color: darkgray;
}

@media (max-width: 1349px) {
    .wcr-installation-photo img {
        width: 100%;
    }

    .wcr-installation-photo p.hide-mobile {
        display: none;
    }

    .wcr-installation-photo p.hide-desktop {
        display: block;
        text-align: center;
    }
}

/* =========================
   Verified Customer Reviews Section
   ========================= */

#wcr-reviews h2 {
    margin-bottom: 0.2em;
    margin-top: 2em;
}

/* Leave Review Link */
.leave-review-link {
    color: #0073aa;
    text-decoration: underline;
    display: inline-block;
    margin-bottom: 2%;
}

@media (max-width: 768px) {
    .leave-review-link {
        margin-top: 10px;
    }
}

/* Increase star size within reviews section */
.wcr-review .wcr-review-rating {
    font-size: 1.5em;
}

/* =========================
   Pagination Styling
   ========================= */

.wcr-pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.wcr-pagination .page-numbers {
    border-radius: 5px;
    padding: 5px 10px;
    margin: 0 2px;
    text-decoration: none;
    color: #0073aa;
    display: inline-block;
    margin-bottom: 0.2em;
}

.wcr-pagination .page-numbers a:hover {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.wcr-pagination .current {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.wcr-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.wcr-pagination li {
    margin: 0 5px;
    display: inline;
}

/* =========================
   Visual Composer Separator
   ========================= */

.vc_separator.vc_sep_color_sky .vc_sep_line {
    border-color: #5AA1E3;
}

.vc_separator .vc_sep_holder .vc_sep_line {
    height: 1px;
    display: block;
    position: relative;
    top: 1px;
    width: 100%;
}

/* =========================
   Loading Spinner
   ========================= */

.wcr-spinner {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #0073aa; /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -30px; /* Half the width */
    margin-top: -30px;  /* Half the height */
    z-index: 1000;      /* Ensure it's above other elements */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
