/* ============================================================================
   Customer Reviews + Actual Product Image — visual redesign (CSS only)
   Loaded AFTER css-shop/style.css and css-shop/prodDtlsModal.css so these
   overrides win the cascade. No markup / server control / JS hook changes.
   Linked on all category detail pages: shopApparel_03, shopAutomobile_03,
   shopBooks_Magazine_03, shopcrafts_03, shopElectronics_03, shopFarmFishAndPlants_03,
   shopGrocery_03, shopHardware_03, shopHealth_03, shopLightingAndDecor_03,
   shopSporting_03, shopAttractAndEntertain_04 (review cards only on that one).
   ============================================================================ */

/* ---------------- Section wrapper ---------------- */
.customerreviewarea3 {
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    padding: 20px 9px 24px;
    margin-top: 14px;
    box-shadow: 0 2px 10px rgba(16, 42, 67, 0.05);
}

    /* Section headings: accent bar instead of the hard underline */
    .customerreviewarea3 h2,
    .mosthelpulcustomerreviewarea3 h2 {
        font-size: 19px;
        color: #1a2b49;
        font-weight: 700;
        border-bottom: none;
        padding: 0 0 6px 12px;
        margin: 0 0 12px;
        position: relative;
        letter-spacing: 0.2px;
    }

        .customerreviewarea3 h2::before,
        .mosthelpulcustomerreviewarea3 h2::before {
            content: "";
            position: absolute;
            left: 0;
            top: 2px;
            bottom: 8px;
            width: 4px;
            border-radius: 4px;
            background: linear-gradient(180deg, #f96515, #f9a825);
        }

/* ---------------- Review image carousel (Customer Reviews) ---------------- */
#sliderCustomerReviews .actual-image-box {
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    overflow: hidden;
    background: #f7f9fb;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

    #sliderCustomerReviews .actual-image-box:hover {
        box-shadow: 0 6px 16px rgba(16, 42, 67, 0.14);
        transform: translateY(-2px);
    }

    #sliderCustomerReviews .actual-image-box img {
        border-radius: 9px;
    }

/* Carousel prev/next: proper circular buttons instead of the small cyan pills.
   Scoped to #sliderCustomerReviews so other owl carousels on the page keep their look.
   The old float + "bottom: 95px" hack is replaced with absolute positioning over the
   carousel edges, vertically centered on the images. */
#sliderCustomerReviews {
    position: relative;
}

    #sliderCustomerReviews .owl-buttons {
        position: static;
        bottom: auto;
    }

    #sliderCustomerReviews .owl-prev,
    #sliderCustomerReviews .owl-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        float: none !important;
        margin: 0;
        z-index: 5;
    }

    #sliderCustomerReviews .owl-prev {
        left: -8px;
    }

    #sliderCustomerReviews .owl-next {
        right: -8px;
    }

#sliderCustomerReviews .owl-buttons div {
    width: 38px;
    height: 38px;
    line-height: 36px;
    padding: 0;
    margin: 0;
    background: #ffffff;
    color: #1a2b49;
    border: 1px solid #dfe6ee;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    opacity: 1;
    box-shadow: 0 3px 10px rgba(16, 42, 67, 0.18);
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

    #sliderCustomerReviews .owl-buttons div:hover {
        background: #27508e;
        color: #ffffff;
        opacity: 1;
        box-shadow: 0 5px 14px rgba(16, 42, 67, 0.28);
    }

/* "SEE MORE" link → pill button */
.MoreActualImg {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid #27508e;
    border-radius: 999px;
    color: #27508e !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-decoration: none !important;
    background: #ffffff;
    transition: background 0.15s ease, color 0.15s ease;
}

    .MoreActualImg:hover {
        background: #27508e;
        color: #ffffff !important;
    }

    .MoreActualImg i.fa {
        font-style: normal;
        font-size: 12px;
    }

/* Read More (reviews) link gets the same pill treatment */
a[id$="lnkReviewMore"] {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid #27508e;
    border-radius: 999px;
    color: #27508e !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    background: #ffffff;
    transition: background 0.15s ease, color 0.15s ease;
}

    a[id$="lnkReviewMore"]:hover {
        background: #27508e;
        color: #ffffff !important;
    }

/* ---------------- Rating summary (stars + distribution bars) ---------------- */
.bbox {
    box-sizing: border-box;         
    background: #f7f9fb;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 12px;
}

    .bbox .maindiv {
        margin-bottom: 6px;
    }

    .bbox .ratingtext {
        color: #1a2b49;
        font-weight: 700;
    }

/* <progress> bars: slim, rounded, amber fill */
.ratingprogressbar {
    height: 10px;
    border: none;
    border-radius: 999px;
    overflow: hidden;
    background-color: #e5eaf0; /* firefox track */
    -webkit-appearance: none;
    appearance: none;
    margin-top: 6px;
}

    .ratingprogressbar::-webkit-progress-bar {
        background-color: #e5eaf0;
        border-radius: 999px;
    }

    .ratingprogressbar::-webkit-progress-value {
        background: linear-gradient(90deg, #f9a825, #f96515);
        border-radius: 999px;
    }

    .ratingprogressbar::-moz-progress-bar {
        background: linear-gradient(90deg, #f9a825, #f96515);
        border-radius: 999px;
    }

/* ---------------- Review cards (Actual Product Image column) ---------------- */
.helpfulreviewbox {
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-bottom: 1px solid #e8ecf1; /* replace the old separator-only look */
    border-radius: 12px;
    padding: 14px 16px 12px;
    margin: 0 0 14px;
    box-shadow: 0 1px 4px rgba(16, 42, 67, 0.05);
    transition: box-shadow 0.18s ease;
}

    .helpfulreviewbox:hover {
        box-shadow: 0 6px 18px rgba(16, 42, 67, 0.10);
    }

    .helpfulreviewbox p {
        color: #333f4d;
        line-height: 21px;
    }

    .helpfulreviewbox .custspan {
        color: #1a2b49 !important;
        font-weight: 700;
    }

    .helpfulreviewbox .customername {
        color: #6b7a8c;
        font-size: 13px;
    }

        .helpfulreviewbox .customername span {
            color: #6b7a8c;
            font-size: 13px;
        }

    .helpfulreviewbox .customername .fa-user {
        color: #ffffff;
        background: linear-gradient(135deg, #27508e, #4a76c4);
        width: 24px;
        height: 24px;
        line-height: 24px;
        text-align: center;
        border-radius: 50%;
        margin-right: 4px;
        font-size: 12px;
    }

    /* thumbs up / down → soft chips */
    .helpfulreviewbox .stararea {
        color: #6b7a8c;
        font-size: 13px;
    }

        .helpfulreviewbox .stararea a {
            display: inline-block;
            color: #27508e;
            background: #eef3fa;
            border: 1px solid #d8e2f0;
            border-radius: 999px;
            padding: 3px 12px;
            margin: 2px 2px 2px 6px;
            text-decoration: none !important;
            transition: background 0.15s ease, color 0.15s ease;
        }

            .helpfulreviewbox .stararea a:hover {
                background: #27508e;
                color: #ffffff;
            }

            .helpfulreviewbox .stararea a .likbtndsn {
                font-size: 14px;
            }

    /* per-review image thumbnails: fixed square thumbs so the row keeps its shape
       even while images load (or fail on dev, where the image server lacks the files) */
    .helpfulreviewbox .actual-image-box {
        width: 76px;
        height: 76px;
        padding: 0;
        margin: 4px 8px 4px 0;
        border: 1px solid #e8ecf1;
        border-radius: 8px;
        overflow: hidden;
        background: #f7f9fb;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

        .helpfulreviewbox .actual-image-box:hover {
            transform: scale(1.03);
            box-shadow: 0 4px 12px rgba(16, 42, 67, 0.15);
        }

        .helpfulreviewbox .actual-image-box img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            margin: 0;
        }

/* ============================================================================
   MODALS
   ============================================================================ */

/* ---- "SEE MORE" style modals (ProdDtls*) ---- */
.ProdDtlsOuterWrapArea {
    background: rgba(10, 22, 36, 0.62) !important;
}

.ProdDtlsModalarea {
    border-radius: 14px !important;
    border: none !important;
    box-shadow: 0 24px 60px rgba(6, 20, 34, 0.35) !important;
    padding: 18px 20px !important;
}

/* Pin the close button to the card's top-right corner — the original float:right
   let it drift with the content flow. The card (.ProdDtlsModalarea) is already
   position:absolute, so it anchors this. Content area gets top margin to clear it. */
.ProdDtlsModalarea .cButtProdRight {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    float: none !important;
    margin: 0 !important;
    z-index: 10;
}

.ProdDtlsModalarea .MTotScrollarea {
    margin-top: 34px;
}

/* Match the ✕-glyph close buttons used by the image-viewer modals: hide the old
   thin-crossButt.png image and draw the ✕ with CSS instead. */
.cButtProdRight a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    background: #ffffff;
    border: 1px solid #e0e6ee;
    border-radius: 50%;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #1a2b49;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(16, 42, 67, 0.15);
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

    .cButtProdRight a::before {
        content: "\2715";
    }

    .cButtProdRight a img {
        display: none;
    }

    .cButtProdRight a:hover {
        background: #1a2b49;
        color: #ffffff;
        opacity: 1;
        transform: rotate(90deg);
    }

/* SEE MORE modal (ActualImageModal): the repeater renders one .image-row per image,
   whose floated child collapses into flat strips (especially while images load).
   Flatten the rows into a wrapping grid of fixed square thumbs. Scoped by id suffix —
   runat="server" prefixes the ClientID — so the MoreReviewModal text list is untouched. */
div[id$="_ActualImageModal"] .ProdDtlsMiddleContArea {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

    div[id$="_ActualImageModal"] .ProdDtlsMiddleContArea .image-row {
        display: contents;
    }

div[id$="_ActualImageModal"] .actual-image-box {
    float: none !important;
    width: 92px !important;
    height: 92px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #e8ecf1 !important;
    border-radius: 8px;
    overflow: hidden;
    background: #f7f9fb;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    div[id$="_ActualImageModal"] .actual-image-box:hover {
        transform: scale(1.03);
        box-shadow: 0 4px 12px rgba(16, 42, 67, 0.15);
    }

    div[id$="_ActualImageModal"] .actual-image-box img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        margin: 0 !important;
    }

/* ---- Image viewer modals (divImageViewModal / divUserImageViewModal) ---- */
.modal-overlay {
    background: rgba(10, 22, 36, 0.72);
}

.modal-container {
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(6, 20, 34, 0.45);
    padding: 22px;
}

.close-btn {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    padding: 0;
    line-height: 36px;
    font-size: 16px;
    background: #ffffff;
    border: 1px solid #e0e6ee;
    color: #1a2b49;
    box-shadow: 0 2px 8px rgba(16, 42, 67, 0.15);
    z-index: 5;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

    .close-btn:hover {
        background: #1a2b49;
        color: #ffffff;
        transform: rotate(90deg);
    }

.main-image-wrapper {
    background: #f2f5f8;
    border-radius: 12px;
}

.right-section {
    background: #f7f9fb;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    padding: 14px 16px;
}

.image-comment-area {
    font-size: 14px;
    color: #333f4d;
    line-height: 21px;
}

    .image-comment-area .commentUser {
        color: #6b7a8c;
        font-size: 13px;
        margin-top: 8px;
    }

/* "View more" toggle inside the comment area */
#toggleBtn,
#toggleBtn1 {
    border: none;
    background: none;
    color: #27508e;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    text-decoration: underline;
}

/* thumbnail strips under the main image */
.thumbnail-carousel {
    scrollbar-width: thin;
}

.thumb-list img {
    border-radius: 8px;
    border: 2px solid transparent;
    transition: border-color 0.15s ease, transform 0.15s ease;
    cursor: pointer;
}

    .thumb-list img:hover {
        border-color: #f96515;
        transform: scale(1.05);
    }

#bottomReviewImg .elastislide-list li img {
    border-radius: 8px;
    border: 2px solid transparent;
    transition: border-color 0.15s ease;
}

    #bottomReviewImg .elastislide-list li img:hover {
        border-color: #f96515;
    }

/* Elastislide prev/next in the image modal: solid navy circles with a shadow
   (size stays 23px so the arrow sprite keeps its alignment).
   The strip (#bottomReviewImg) is made the positioning anchor — elastislide.css has the
   wrapper's position:relative commented out, so without this the absolute nav buttons
   anchor to the whole modal and end up scattered outside the strip. */
#bottomReviewImg {
    position: relative;
    background: #f2f5f8;   /* replace the harsh gray (#898686) bar */
    border-radius: 10px;
    /* Side padding keeps thumbnails clear of the 27px nav buttons (8px inset + 27px
       + 1px gap = 36px). border-box keeps the 100%-width strip from overflowing its
       column — verified live in the browser. Don't center the ul instead: elastislide's
       slide math assumes the list starts at the carousel's left edge. */
    padding: 6px 36px;
    box-sizing: border-box;
    overflow: hidden;      /* elastislide slides via JS; never show scrollbars */
}

    /* Rein in the elastislide library's internal boxes so the strip stays one
       clean row: the library gives the carousel a 300px min-height + 50px top
       padding and centers a narrow wrapper, which pushed thumbs out of the bar
       and dragged the nav buttons to the wrapper's edges instead of the strip's. */
    #bottomReviewImg .elastislide-wrapper {
        /* !important beats the inline position the plugin JS writes on this box —
           without it the nav buttons anchor here instead of the strip */
        position: static !important;
        width: 100% !important;
        margin: 0 !important;
        min-height: 0;
        box-shadow: none;
        background: none;
    }

    #bottomReviewImg .elastislide-horizontal {
        padding: 0;
    }

    #bottomReviewImg .elastislide-carousel {
        min-height: 0;
        padding-top: 0;
        padding-left: 0;
        overflow: hidden;
    }

    #bottomReviewImg nav span {
        position: absolute !important;
        top: 15% !important;
        bottom: auto !important;
        margin-top: -14px !important;  /* half of 23px button + 2px ring */
        left: 8px !important;
        right: auto !important;
        display: block !important;
        z-index: 5;
        background-color: #27508e;
        opacity: 1;
        border: 2px solid #ffffff;
        box-shadow: 0 2px 8px rgba(16, 42, 67, 0.35);
        transition: background-color 0.15s ease, transform 0.15s ease;
    }

        #bottomReviewImg nav span.elastislide-next {
            left: auto !important;
            right: 8px !important;
        }

        #bottomReviewImg nav span:hover {
            background-color: #f96515;
            transform: scale(1.1);
        }

/* User-review modal thumbnail strip: restyle the inline-styled ❮ ❯ buttons
   (!important needed because the markup sets border/background/font-size inline) */
#divBottomFullReviewImage {
    background: #f2f5f8 !important;
    border-radius: 10px !important;
}

    #divBottomFullReviewImage > button {
        border: 1px solid #dfe6ee !important;
        background: #ffffff !important;
        width: 34px;
        height: 34px;
        line-height: 32px;
        padding: 0;
        border-radius: 50%;
        font-size: 14px !important;
        color: #1a2b49;
        flex: 0 0 auto;
        box-shadow: 0 2px 8px rgba(16, 42, 67, 0.16);
        transition: background 0.15s ease, color 0.15s ease;
    }

        #divBottomFullReviewImage > button:hover {
            background: #27508e !important;
            color: #ffffff;
        }

/* ---------------- Image modals on small screens ---------------- */
@media (max-width: 768px) {
    #divImageViewModal .left-section,
    #divUserImageViewModal .left-section {
        min-width: 0;
        max-width: 100%;
    }

    /* On mobile the comment panel overlays the top of the image (original design
       positions it absolute) — use a translucent white card there so the image
       stays visible behind it instead of the solid panel used on desktop. */
    #divImageViewModal .right-section,
    #divUserImageViewModal .right-section {
        background: rgba(255, 255, 255, 0.94);
        border: none;
        box-shadow: 0 2px 10px rgba(16, 42, 67, 0.12);
        width: 85% !important;
    }
}

/* ---------------- Small screens ---------------- */
@media (max-width: 767px) {
    .customerreviewarea3 {
        padding: 14px 12px 18px;
        border-radius: 10px;
        width: 94% !important;
    }

    .helpfulreviewbox {
        padding: 12px 12px 10px;
        width: 95% !important;
    }

    .modal-container {
        padding: 14px;
        border-radius: 12px;
    }
}

/* ---------------- Laptop widths (1101px to 1366px) ----------------
   style.css gives the Customer Reviews column 40% and the review-cards column
   29% here, so almost a third of the row stayed empty on the right. Share the
   row instead: 42% + 3% gap + 55%. */
@media (min-width: 1101px) and (max-width: 1366px) {
    .customerratingbox3 {
        width: 42%;
    }

    .mosthelpulcustomerreviewarea3 {
        width: 55%;
        margin-left: 3%;
    }
}

/* "+ SEE MORE" (all review images) belongs to the Customer Reviews column, but
   style.css pins it to the middle of the whole section (right: 50%), which at
   laptop widths lands on the "Actual Product Image" heading. Anchor it to its
   own column's top-right corner, level with the heading. Phones keep their rule. */
@media (min-width: 769px) {
    .customerratingbox3 {
        position: relative;
    }

        .customerratingbox3 .actual-all-box {
            top: 0 !important;
            right: 8px !important;
            left: auto !important;
        }

        .customerratingbox3 .actualMore {
            padding: 0;
            float: none;
        }
}

/* Below 1100px style.css stacks the two blocks (reviews column 98%) but leaves
   the review-cards block at 40%, so the cards sat in a narrow strip under a
   full-width block. Let it span the row too. */
@media (min-width: 769px) and (max-width: 1100px) {
    .mosthelpulcustomerreviewarea3 {
        width: 98%;
        margin-left: 1%;
    }
}

/* ---------------- Rating summary box on phones ----------------
   The markup floats three cells per star row at 10% / auto / 10%: on a phone the
   label cell is 27px wide, so "5 ★" wraps onto two lines and the count column is
   squeezed. Each row becomes one flex line instead, the box fills its column
   (style.css shrinks it to 93%), and the header shows the stars with the score
   on one line and "N Rating & Review" beneath. Layout only. */
@media (max-width: 767px) {
    .bbox {
        width: 100% !important;
        padding: 12px 14px;
    }

        /* star rows: label | bar | count */
        .bbox > div > div:not(.maindiv) {
            display: flex !important;
            align-items: center;
            gap: 10px;
            float: none !important;
            width: 100% !important;
            padding: 3px 0;
        }

            .bbox > div > div:not(.maindiv) > div {
                float: none !important;
                width: auto !important;
                white-space: nowrap;
            }

            .bbox > div > div:not(.maindiv) > div:first-child {
                flex: 0 0 34px;
            }

            .bbox > div > div:not(.maindiv) > .cell {
                flex: 1 1 auto;
                min-width: 0;
            }

                .bbox > div > div:not(.maindiv) > .cell .ratingprogressbar {
                    width: 100%;
                    margin-top: 0;
                    display: block;
                }

            .bbox > div > div:not(.maindiv) > div:last-child {
                flex: 0 0 28px;
                text-align: right;
            }

        /* header: stars + "4.75 out of 5" on one line, "4 Rating & Review" below */
        .bbox .maindiv {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 2px 12px;
            margin-bottom: 8px;
        }

            .bbox .maindiv .rating {
                float: none !important;
                width: auto !important;
                padding: 4px 0 !important;
            }

            .bbox .maindiv .ratingtext {
                float: none !important;
                width: auto !important;
                font-size: 18px !important;
                white-space: nowrap;
            }

            .bbox .maindiv > div:last-child {
                width: 100%;
            }
}

.divotherreviewcrl {
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 18px 4px 4px;
    box-sizing: border-box;
}

.service-outer-circle,
.quality-outer-circle,
.delivery-outer-circle {
    position: relative;
    flex: 0 0 auto;
    float: none;
    /* a third of the row, never larger than the original 92px: the three rings
       always share one line, even in a narrow phone column */
    width: calc((100% - 24px) / 3);
    max-width: 92px;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 0 38px;            /* room for the rating name under the ring */
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.service-outer-circle  { --c: #ff7400; }
.quality-outer-circle  { --c: #00b2c8; }
.delivery-outer-circle { --c: #666666; }

.mask-service-inner-circle,
.mask-quality-inner-circle,
.mask-delivery-inner-circle {
    position: absolute;
    top: 0;
    left: 0;
    bottom: auto;
    width: 100%;
    height: 100% !important;     /* beats the inline fill height */
    transform: none;
    overflow: visible;
    border: 0;
    border-radius: 50%;
    background: conic-gradient(var(--c) calc(var(--p, 0) * 1%), #edf1f5 0);
}

.service-inner-circle,
.quality-inner-circle,
.delivery-inner-circle {
    display: block;
    position: absolute;
    top: 8px;
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
}

.service-text-circle,
.quality-text-circle,
.delivery-text-circle {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transform: none;
    color: #1a2b49;
    text-align: center;
}

    /* the percentage, in the middle of the ring */
    .service-text-circle > span:first-child,
    .quality-text-circle > span:first-child,
    .delivery-text-circle > span:first-child {
        font-size: 18px;
        font-weight: 700;
        line-height: 1;
    }

    /* the rating name, under the ring */
    .service-text-circle > span:nth-child(2),
    .quality-text-circle > span:nth-child(2),
    .delivery-text-circle > span:nth-child(2) {
        position: absolute;
        top: calc(100% + 8px);
        left: -8px;
        right: -8px;
        color: #6b7a8c;
        font-size: 12px;
        line-height: 1.25;
    }

/* ---- "SEE MORE" modal grid: even columns that fill the card ---- */
div[id$="_ActualImageModal"] .ProdDtlsMiddleContArea {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 10px;
}

div[id$="_ActualImageModal"] .actual-image-box {
    box-sizing: border-box;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
}

div[id$="_ActualImageModal"] .MTotScrollarea {
    padding-right: 4px;
    box-sizing: border-box;
    scrollbar-width: thin;
}

    /* "+" icon and the text were touching */
    .MoreActualImg i.fa::before {
        margin-right: 5px;
    }

/* ---- phones and small tablets ---- */
@media (max-width: 768px) {
    /* heading and the SEE MORE pill share the top line without overlapping */
    .customerratingbox3 {
        position: relative;
    }

        .customerratingbox3 > h2 {
            padding-right: 94px;     /* the pill is about 84px wide */
            font-size: 17px;
        }

        .customerratingbox3 .actual-all-box {
            top: 0 !important;
            right: 0 !important;
            left: auto !important;
        }

        .customerratingbox3 .actualMore {
            padding: 0;
            float: none;
        }

        .customerratingbox3 .MoreActualImg {
            padding: 5px 11px;
            font-size: 11px;
        }

    /* the card was 85% wide plus padding, so on a phone it ran past the screen
       edge and the close button was cut off: centre it and keep the padding inside */
    div[id$="_ActualImageModal"] .ProdDtlsModalarea {
        box-sizing: border-box;
        width: calc(100% - 32px) !important;
        max-width: 520px !important;
        left: 50% !important;
        transform: translateX(-50%);
        padding: 14px !important;
    }

    div[id$="_ActualImageModal"] .ProdDtlsMiddleContArea {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }
}

@media (max-width: 767px) {
    .service-inner-circle,
    .quality-inner-circle,
    .delivery-inner-circle {
        top: 7px;
        right: 7px;
        bottom: 7px;
        left: 7px;
    }

        .service-text-circle > span:first-child,
        .quality-text-circle > span:first-child,
        .delivery-text-circle > span:first-child {
            font-size: 16px;
        }

        .service-text-circle > span:nth-child(2),
        .quality-text-circle > span:nth-child(2),
        .delivery-text-circle > span:nth-child(2) {
            font-size: 11px;
        }
}

/* ---- "Product all Review" modal (MoreReviewModal, opened from "Read More") ----
   Same card as the SEE MORE modal: on phones it ran past the screen edge (85% plus
   padding), cutting off the review cards and the close button. The title is a plain
   <div> first child of the card: styled as a heading with room for the close button. */
div[id$="_MoreReviewModal"] .ProdDtlsModalarea > div:first-child {
    padding: 4px 48px 0 2px;
    color: #1a2b49;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

div[id$="_MoreReviewModal"] .MTotScrollarea {
    margin-top: 14px;
    padding-right: 4px;
    box-sizing: border-box;
    scrollbar-width: thin;
}

div[id$="_MoreReviewModal"] .helpfulreviewbox {
    box-sizing: border-box;
    width: 100% !important;
    margin: 0 0 10px;
    float: none;
}

    div[id$="_MoreReviewModal"] .helpfulreviewbox p {
        margin: 0 0 6px;
        overflow-wrap: anywhere;
    }

@media (max-width: 768px) {
    div[id$="_MoreReviewModal"] .ProdDtlsModalarea {
        box-sizing: border-box;
        width: calc(100% - 32px) !important;
        max-width: 520px !important;
        left: 50% !important;
        transform: translateX(-50%);
        padding: 14px !important;
    }

    div[id$="_MoreReviewModal"] .ProdDtlsModalarea > div:first-child {
        font-size: 16px;
    }

    div[id$="_MoreReviewModal"] .helpfulreviewbox {
        padding: 12px 12px 10px;
    }
}

/* prodDtlsModal.css narrows the close wrapper to 30px on phones while the round button is
   36px, so the button spilled past the card's right edge: let the wrapper fit the button */
.ProdDtlsModalarea .cButtProdRight {
    width: auto !important;
    line-height: 0;
}

div[id$="_MoreReviewModal"] .helpfulreviewbox {
    display: flow-root;
}

    div[id$="_MoreReviewModal"] .helpfulreviewbox > p,
    div[id$="_MoreReviewModal"] .helpfulreviewbox > .customername {
        float: none;
        width: auto;
    }
