/*
 Theme Name:   Betheme Child
 Template:     betheme
*/



/* Custom product reviews layout */

.custom-reviews-wrapper {
    margin-top: 40px;
}

.custom-reviews-header {
    text-align: center;
    margin-bottom: 24px;
}

.custom-reviews-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
}

.custom-reviews-verified {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
}

.custom-reviews-verified-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #00c853; /* green circle */
    color: #fff;
    font-size: 16px;
}

/* Summary layout */

.custom-reviews-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    padding: 24px 24px 16px;
    border-top: 1px solid #e5e5e5;
    
    margin-bottom: 32px;
}

.custom-reviews-summary-left {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.custom-reviews-average {
    font-size: 40px;
    font-weight: 700;
}

.custom-reviews-stars .star-rating {
    font-size: 18px;
}

.custom-reviews-count {
    font-size: 14px;
    color: #666;
}

/* Bars */

.custom-reviews-summary-right {
    flex: 1 1 260px;
}

.custom-reviews-bars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom-reviews-bar-row {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.custom-reviews-bar-label {
    text-align: right;
    color: #444;
}

.custom-reviews-bar-track {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: #f1f1f1;
    overflow: hidden;
}

.custom-reviews-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    border-radius: inherit;
    background: #E40520; /* purple bar */
}

/* Review list */

.custom-reviews-comments {
    margin-top: 24px;
}

.custom-reviews-comments .commentlist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-reviews-comments .commentlist > li {
    border-top: 1px solid #eee;
    padding: 24px 0;
}

.custom-reviews-comments .commentlist > li:first-child {
    border-top: none;
}

.custom-reviews-comments .comment_container {
    display: flex;
    gap: 16px;
}

.custom-reviews-comments .comment_container .avatar {
    border-radius: 999px;
    width: 48px;
    height: 48px;
}

/* Mobile */

@media (max-width: 767px) {
    .custom-reviews-summary {
        flex-direction: column;
    }

    .custom-reviews-summary-left {
        flex-basis: auto;
    }

    .custom-reviews-bar-row {
        grid-template-columns: 40px 1fr auto;
    }

    .custom-reviews-comments .comment_container {
        flex-direction: column;
    }

    .custom-reviews-comments .comment_container .avatar {
        width: 40px;
        height: 40px;
    }
}

/* CONTAINER STRUCTURE */
.custom-review-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-review-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0;
    gap: 20px;
}

/* LEFT SIDE */
.custom-review-left {
    display: flex;
    flex-direction: column;
 
    flex: 1;
}

.custom-review-avatar {
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

.custom-review-user {
    font-size: 16px;
    font-weight: 600;
   
}

.custom-review-author {
    font-weight: 700;
    font-size: 17px;
}

/* REVIEW TEXT */
.custom-review-text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}



/* RIGHT SIDE: RATING NUMBER + STARS */
.custom-review-right {
    text-align: right;
    min-width: 100px;
}

.custom-review-rating-number {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.custom-review-stars .star {
    font-size: 18px;
    margin-left: 2px;
}

/* Purple stars */
.custom-review-stars .full {
    color: #E40520;
}

.custom-review-stars .empty {
    color: #ddd;
}

/* DIVIDER */
.custom-review-divider {
    border: none;
    border-bottom: 1px solid #e6e6e6;
    margin: 0 0 10px;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .custom-review-card {
        flex-direction: column;
        text-align: left;
    }
    .custom-review-right {
        width: 100%;
        text-align: left;
        margin-top: 10px;
    }
}

/* Force WooCommerce reviews wrapper to full width */
#reviews.woocommerce-Reviews.custom-reviews-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* Ensure any internal wrapper does not shrink it */
#reviews .custom-reviews-wrapper,
#reviews .custom-reviews-comments,
#reviews .custom-reviews-summary,
#reviews .custom-review-card {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* This is the styling responsible for the Woocommerce product upsells element inside the betheme single product template */
/* Scope to BeTheme Upsells only */
.single-product .mfn-upsells {}

/* 1) Hide the variations dropdown inside upsells only */
.single-product .mfn-upsells .mfn-variations-wrapper-loop {
  display: none;
}

/* 2) Centre the thumbnail row */
.single-product .mfn-upsells .mfn-li-product-row-image {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

/* 3) Force a fixed 190x190 image container and centre contents */
.single-product .mfn-upsells .image_frame.product-loop-thumb {
  width: 190px;
  height: 190px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 4) Ensure wrapper and link stay centred and constrained */
.single-product .mfn-upsells .image_wrapper,
.single-product .mfn-upsells .image_wrapper > a,
.single-product .mfn-upsells .mfn-product-list-gallery-item {
  width: 190px;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 5) Image sizing and FIT behaviour */
.single-product .mfn-upsells .product-loop-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block;
}


/* Upsells only: consistent 3 line title space without inflating the link box */
.single-product .mfn-upsells .mfn-li-product-row-title {
  line-height: 1.3;
  min-height: 3.9em;
  margin-bottom: 0;
}

/* Keep truncation on the actual link text */
.single-product .mfn-upsells .mfn-li-product-row-title .title a {
  display: block;
  line-height: 1.3;
  max-height: 3.9em;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* 
/* 7) Remove the extra WooCommerce button output (prevents duplicates and misalignment) */
/*
.single-product .mfn-upsells .mfn-after-shop-loop-item {
  display: none;
}
*/

/* 8) Optional: hide "Add to enquiry" icon in image overlay, keep View Product only */
/*
.single-product .mfn-upsells .image_links a.add_to_cart_button {
  display: none;
}
*/

/* Upsells only: replace main button label with "View Product" */
/*
.single-product .mfn-upsells .mfn-li-product-row-button.button-1 > a.button:first-child {
  position: relative;
  color: transparent !important;
  text-shadow: none !important;
}
*/

/* Overlay the replacement label */
/*
.single-product .mfn-upsells .mfn-li-product-row-button.button-1 > a.button:first-child::after {
  content: "View Product";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
}
*/

/* Upsells only: force all primary buttons to fixed width */
/*
.single-product .mfn-upsells .mfn-li-product-row-button.button-1 > a.button {
  width: 162.25px !important;
  height: 48.8px !important;
}
*/




/* Hide everywhere by default */
.orapi-loop-rating {
  display: none;
}

/* Hide everywhere by default */
.orapi-loop-rating {
  display: none;
}

/* Show only in BeTheme upsells on single product */
.single-product .mfn-upsells .orapi-loop-rating {
  display: block;
  margin-bottom: 5px;
	
}

/* Upsells only: force star size where the stars are actually drawn */
.single-product .mfn-upsells .orapi-stars::before,
.single-product .mfn-upsells .orapi-stars > span::before {
  font-size: 16px !important;
  line-height: 1 !important;
}

/* Hide upsells heading only on single product */
.single-product .mfn-upsells > h1.title.heading {
  display: none;
}


