/* Mayobook v1.13.154 shared governed book-card rating; scoped to Store preview and homepage. */
body.mbfe-store-signature-preview #mb-shop-page.mbsp-preview .mb-shop-product-card__rating,
#mb-signature .ms-card-meta{
 display:flex;align-items:center;min-height:19px;min-width:0;
 color:#617a70;font:500 11px/1.4 system-ui,-apple-system,sans-serif;
}
body.mbfe-store-signature-preview #mb-shop-page.mbsp-preview .mbfe154-rating,
#mb-signature .mbfe154-rating{
 display:inline-flex;align-items:center;gap:5px;min-width:0;white-space:nowrap;
 vertical-align:middle;
}
body.mbfe-store-signature-preview #mb-shop-page.mbsp-preview .mbfe154-stars,
#mb-signature .mbfe154-stars{
 display:inline-block;position:relative;flex:none;
 font:700 12px/1.15 Arial,sans-serif;letter-spacing:.02em;
 background:linear-gradient(to right,#b78730 0%,#b78730 var(--mbfe154-fill),#cfdbd3 var(--mbfe154-fill),#cfdbd3 100%);
 background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent;
}
body.mbfe-store-signature-preview #mb-shop-page.mbsp-preview .mbfe154-average,
#mb-signature .mbfe154-average{
 color:#1b4d3e;font-weight:750;font-size:11px;
}
body.mbfe-store-signature-preview #mb-shop-page.mbsp-preview .mbfe154-count,
#mb-signature .mbfe154-count{
 color:#70877a;font-weight:450;font-size:10.5px;overflow:hidden;text-overflow:ellipsis;
}
body.mbfe-store-signature-preview #mb-shop-page.mbsp-preview .mbfe154-unrated,
#mb-signature .mbfe154-unrated{
 color:#779086;font-weight:450;font-size:11px;
}
/* Preserve the homepage's existing card proportions. */
#mb-signature .ms-card-meta{margin-top:auto;}
/* The list and grid share the identical server-side review component. */
body.mbfe-store-signature-preview #mb-shop-page.mbsp-preview .mb-shop-grid.mbsp152-list .mb-shop-product-card__rating{margin:0 0 5px!important;}
@media(max-width:760px){
 body.mbfe-store-signature-preview #mb-shop-page.mbsp-preview .mbfe154-rating{gap:3px;}
 body.mbfe-store-signature-preview #mb-shop-page.mbsp-preview .mbfe154-stars{font-size:10.5px;}
 body.mbfe-store-signature-preview #mb-shop-page.mbsp-preview .mbfe154-average{font-size:10px;}
 body.mbfe-store-signature-preview #mb-shop-page.mbsp-preview .mbfe154-count{font-size:9px;}
}

/* v1.13.155 shared stars and Store preview contextual sales ranking.
   Product-page badges and approved Store grid/list switch unchanged. */
#mb-signature .mbfe155-empty-stars,
body.mbfe-store-signature-preview #mb-shop-page.mbsp-preview .mbfe155-empty-stars{
 display:inline-block;flex:none;
 font:700 12px/1.2 Arial,Helvetica,sans-serif;
 letter-spacing:.012em;color:transparent!important;-webkit-text-fill-color:transparent!important;
 -webkit-text-stroke:.95px #b78b36!important;
}
#mb-signature .mbfe154-unrated,
body.mbfe-store-signature-preview #mb-shop-page.mbsp-preview .mbfe154-unrated{
 display:inline-flex!important;align-items:center!important;gap:6px!important;white-space:nowrap!important;
 color:#74897e!important;font:450 10.5px/1.4 system-ui,sans-serif!important;
}
#mb-signature .mbfe155-empty-copy,
body.mbfe-store-signature-preview #mb-shop-page.mbsp-preview .mbfe155-empty-copy{white-space:nowrap!important}
#mb-signature .ms-card-meta{min-height:20px!important;display:flex!important;align-items:center!important}
body.mbfe-store-signature-preview #mb-shop-page.mbsp-preview .mb-shop-section--grid .mb-shop-product-card{position:relative!important}
body.mbfe-store-signature-preview #mb-shop-page.mbsp-preview .mbfe155-sales-position{
 position:absolute!important;z-index:3!important;top:18px!important;left:18px!important;
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 min-width:30px!important;height:26px!important;padding:0 7px!important;
 border:1px solid #e0c98c!important;border-radius:8px!important;
 background:#fff9eb!important;color:#755619!important;
 font:750 11px/1 system-ui,sans-serif!important;box-shadow:0 2px 6px rgba(36,44,30,.09)!important
}
body.mbfe-store-signature-preview #mb-shop-page.mbsp-preview .mb-shop-grid.mbsp152-list .mbfe155-sales-position{
 top:18px!important;left:18px!important;min-width:28px!important;height:24px!important;font-size:10px!important
}
@media(max-width:760px){
 body.mbfe-store-signature-preview #mb-shop-page.mbsp-preview .mbfe155-sales-position{
  top:13px!important;left:13px!important;min-width:25px!important;height:22px!important;
  padding:0 5px!important;border-radius:7px!important;font-size:10px!important
 }
 body.mbfe-store-signature-preview #mb-shop-page.mbsp-preview .mbfe155-empty-stars{font-size:10px!important}
 body.mbfe-store-signature-preview #mb-shop-page.mbsp-preview .mbfe154-unrated{gap:3px!important;font-size:9.3px!important}
 body.mbfe-store-signature-preview #mb-shop-page.mbsp-preview .mb-shop-grid.mbsp152-list .mbfe155-sales-position{
  top:13px!important;left:13px!important
 }
}
@media(max-width:360px){
 body.mbfe-store-signature-preview #mb-shop-page.mbsp-preview .mbfe154-unrated{
  font-size:8px!important
 }
 body.mbfe-store-signature-preview #mb-shop-page.mbsp-preview .mbfe155-empty-stars{
  font-size:9px!important;letter-spacing:-.05em!important
 }
}

/* v1.13.156: narrow-screen review stars must remain legible without overflowing.
   Leave established card layout, toggle, badges and price controls untouched. */
@media(max-width:410px){
 body.mbfe-store-signature-preview #mb-shop-page.mbsp-preview .mbfe154-unrated,
 #mb-signature .mbfe154-unrated{
  display:flex!important;flex-wrap:wrap!important;white-space:normal!important;
  align-content:center!important;column-gap:4px!important;row-gap:2px!important;
  line-height:1.25!important;
 }
 body.mbfe-store-signature-preview #mb-shop-page.mbsp-preview .mbfe155-empty-copy,
 #mb-signature .mbfe155-empty-copy{white-space:normal!important}
 body.mbfe-store-signature-preview #mb-shop-page.mbsp-preview .mb-shop-product-card__rating{
  min-height:28px!important
 }
}
@supports not (-webkit-text-stroke: 1px black){
 #mb-signature .mbfe155-empty-stars,
 body.mbfe-store-signature-preview #mb-shop-page.mbsp-preview .mbfe155-empty-stars{
  color:#b78b36!important;-webkit-text-fill-color:#b78b36!important;
 }
}
