/* Small, scoped refinements for Heretro's current Flatsome child theme. */
body.woocommerce-cart #main .cart-container .woocommerce.row {
  grid-template-columns: minmax(0, 1.65fr) minmax(330px, 1fr);
  gap: 24px;
}
body.woocommerce-cart #main .cart-sidebar {
  padding: 20px !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}
body.woocommerce-cart #main .cart_totals > h2 {
  padding: 0 0 12px;
  margin: 0 0 8px;
  border-bottom: 1px solid #e3e7ed;
  font-size: 18px !important;
  letter-spacing: -.025em;
}
body.woocommerce-cart #main .cart_totals table {
  margin: 0 0 12px;
  border-collapse: collapse;
}
body.woocommerce-cart #main .cart_totals table :is(th, td) {
  padding: 10px 0;
  border: 0;
  font-size: 13px;
  line-height: 1.5;
  vertical-align: middle;
}
body.woocommerce-cart #main .cart_totals table th {
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: #596474;
}
body.woocommerce-cart #main .cart_totals .shipping__inner { padding: 10px 0 14px; }
body.woocommerce-cart #main .cart_totals .shipping__table { margin: 0; }
body.woocommerce-cart #main .cart_totals .shipping__table th {
  padding: 0 0 9px;
  font-weight: 650;
  color: #202329;
}
body.woocommerce-cart #main .cart_totals .shipping__table td { padding: 0; }
body.woocommerce-cart #main .cart_totals #shipping_method {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.woocommerce-cart #main .cart_totals #shipping_method li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 10px 11px;
  margin: 0 !important;
  border: 1px solid #e3e7ed;
  border-radius: 8px;
  background: #fff;
  text-align: left;
}
body.woocommerce-cart #main .cart_totals #shipping_method li:has(input:checked) {
  background: #fff7f7;
  border-color: #ddb1b6;
}
body.woocommerce-cart #main .cart_totals #shipping_method input[type="radio"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 2px 0 0;
  accent-color: #990b15;
}
body.woocommerce-cart #main .cart_totals #shipping_method li:has(input[type="hidden"]) { grid-template-columns: minmax(0, 1fr); }
body.woocommerce-cart #main .cart_totals #shipping_method label {
  margin: 0;
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #3c4655 !important;
  font-weight: 500;
  cursor: pointer;
  overflow-wrap: anywhere;
}
body.woocommerce-cart #main .cart_totals .woocommerce-shipping-destination {
  margin: 10px 0 8px;
  font-size: 12px;
  color: #697484;
}
body.woocommerce-cart #main .cart_totals .woocommerce-shipping-calculator { margin: 0; }
body.woocommerce-cart #main .cart_totals .shipping-calculator-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 7px;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid #d8a3aa;
  border-radius: 7px;
  background: #fff;
  color: #990b15 !important;
  font: 650 13px/1.4 "Segoe UI", Arial, sans-serif !important;
  text-decoration: none;
  white-space: normal;
}
body.woocommerce-cart #main .cart_totals .shipping-calculator-button:hover {
  background: #fff4f5;
  border-color: #990b15;
}
body.woocommerce-cart #main .cart_totals .shipping-calculator-button:focus-visible {
  outline: 2px solid #990b15;
  outline-offset: 3px;
}
body.woocommerce-cart #main .cart_totals .shipping-calculator-form {
  padding: 14px 0 0;
  margin: 0;
}
body.woocommerce-cart #main .cart_totals .shipping-calculator-form .form-row { margin-bottom: 6px; }
body.woocommerce-cart #main .cart_totals .order-total :is(th, td) {
  padding: 14px 0 4px;
  border-top: 1px solid #e3e7ed;
  border-bottom: 0;
  color: #202329;
}
body.woocommerce-cart #main .cart_totals .order-total .amount { font-size: 26px; }
body.woocommerce-cart #main .wc-proceed-to-checkout {
  padding: 12px 0 0;
  border: 0;
}
body.woocommerce-cart #main .wc-proceed-to-checkout .checkout-button {
  min-height: 48px;
  margin: 0;
  width: 100%;
}
body.woocommerce-cart #main .cart-sidebar .checkout_coupon {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid #e3e7ed;
}
body.woocommerce-cart #main .cart-sidebar .coupon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}
body.woocommerce-cart #main .cart-sidebar .coupon .widget-title {
  grid-column: 1 / -1;
  padding: 0;
  margin: 0;
  border: 0;
  font-size: 13px;
}
body.woocommerce-cart #main .cart-sidebar .coupon input[name="coupon_code"] {
  min-width: 0;
  min-height: 44px;
  margin: 0;
  font-size: 13px;
}
body.woocommerce-cart #main .cart-sidebar .coupon input[name="apply_coupon"] {
  width: auto !important;
  min-height: 44px !important;
  height: auto;
  padding: 11px 12px !important;
  margin: 0;
  background: #f3f5f7 !important;
  border: 1px solid #d9dfe7 !important;
  color: #28313e !important;
  font-size: 12px !important;
}
body.woocommerce-cart #main .cart-sidebar .coupon input[name="apply_coupon"]:hover {
  background: #e9edf2 !important;
}

/* A consistent compact logo and a readable label; original destinations stay. */
#header :is(.hr-menu-team, .hr-menu-league) > a,
#main-menu :is(.hr-menu-team, .hr-menu-league) > a {
  display: flex !important;
  align-items: center;
  gap: 9px;
  min-width: 0;
  line-height: 1.4 !important;
}
#header .hr-menu-team > a, #main-menu .hr-menu-team > a {
  min-height: 42px;
  padding: 6px 8px !important;
}
.hr-menu-icon {
  display: inline-flex;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 3px;
  border: 1px solid #e4e8ee;
  border-radius: 7px;
  background: #fff;
}
.hr-menu-icon .hr-menu-image {
  display: block;
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain;
}
.hr-menu-label { min-width: 0; overflow-wrap: anywhere; }
.hr-menu-initials { color: #607084; font: 700 10px/1 "Segoe UI", Arial, sans-serif; }
#header .hr-menu-league > a .hr-menu-icon {
  flex-basis: 20px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
}
#header .hr-menu-league > a .hr-menu-image { width: 19px !important; height: 19px !important; }
#header #wide-nav .nav-dropdown .nav-column a { font-size: 13px !important; }
#header #wide-nav .nav-dropdown .nav-column { min-width: 180px; }
#main-menu .hr-menu-team > a { min-height: 44px; padding: 7px 12px !important; }

/* Three real related products; titles and prices align rather than stretching. */
body #main .hr-fbt { padding: 0; margin: 0; min-width: 0; }
body #main .hr-fbt > h3 {
  margin: 0 0 12px;
  font: 700 16px/1.4 "Segoe UI", Arial, sans-serif;
  letter-spacing: -.02em;
  color: #202329;
}
body #main .hr-fbt .products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100% !important;
  max-width: 100%;
  margin: 0 !important;
  align-items: stretch;
}
body #main .hr-fbt .products::before, body #main .hr-fbt .products::after { display: none; }
body #main .hr-fbt .products > .col {
  min-width: 0;
  width: 100% !important;
  max-width: 100% !important;
  flex-basis: auto !important;
  padding: 0 !important;
  margin: 0;
}
body #main .hr-fbt .products > .col > .col-inner { height: 100%; }
body #main .hr-fbt .product-small.box {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e3e7ed;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
  box-shadow: none !important;
}
body #main .hr-fbt .box-image { width: 100% !important; min-width: 0 !important; aspect-ratio: 1; background: #f8f9fb; }
body #main .hr-fbt .box-image :is(a, div) { height: 100%; }
body #main .hr-fbt .box-image img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: contain; }
body #main .hr-fbt .box-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 10px !important;
  text-align: left;
  min-width: 0;
  border: 0 !important;
}
body #main .hr-fbt .product-title,
body.heretro-pdp-context #main .hrp-gallery-recommendations .hr-fbt .product-title {
  min-height: 51px;
  margin: 0 0 7px;
  font: 500 12px/17px "Segoe UI", Arial, sans-serif !important;
}
body #main .hr-fbt .product-title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  color: #28313e;
}
body #main .hr-fbt .price-wrapper { margin-top: auto; }
body #main .hr-fbt .price { font-size: 13px; font-weight: 650; margin: 0; color: #990b15; }
body #main .hr-fbt :is(.category, .star-rating, .add-to-cart-button, .box-text-products > .button) { display: none; }
body.woocommerce-cart #main .hr-fbt { margin: 26px 0 0; padding: 20px 0 0; border-top: 1px solid #e3e7ed; }
body.woocommerce-cart #main .hr-fbt .box-image { aspect-ratio: 4 / 3; }

/* The review plugin paints the numeric badge dark by default. */
body.heretro-pdp-context #main #heretro-customer-reviews .shortcode-wcpr-overall-rating-left,
body.heretro-pdp-context #main #heretro-customer-reviews .shortcode-wcpr-overall-rating-left-average {
  background: transparent !important;
  background-image: none !important;
  color: #202329 !important;
  box-shadow: none !important;
  border: 0 !important;
}
body.heretro-pdp-context #main #heretro-customer-reviews .shortcode-wcpr-overall-rating-left-average {
  display: block;
  padding: 0 !important;
  margin: 0;
  width: auto;
  height: auto;
  border-radius: 0;
}

/* One yellow for the summary, overall score and every customer review. */
body.heretro-pdp-context { --hr-review-gold: #ffb600; }
body.heretro-pdp-context #main .hrp-reviews .star-rating,
body.heretro-pdp-context #main #heretro-customer-reviews .star-rating,
body.heretro-pdp-context #main .hrp-reviews .star-rating::before,
body.heretro-pdp-context #main .hrp-reviews .star-rating span::before,
body.heretro-pdp-context #main #heretro-customer-reviews .star-rating::before,
body.heretro-pdp-context #main #heretro-customer-reviews .star-rating span::before {
  color: var(--hr-review-gold) !important;
}
body.heretro-pdp-context #main .hrp-reviews .star-rating::before,
body.heretro-pdp-context #main #heretro-customer-reviews .star-rating::before { opacity: .3 !important; }
body.heretro-pdp-context #main .hrp-reviews .star-rating span::before,
body.heretro-pdp-context #main #heretro-customer-reviews .star-rating span::before { opacity: 1 !important; }
body.heretro-pdp-context #main #heretro-customer-reviews .rate-percent { background-color: var(--hr-review-gold) !important; }

@media (max-width: 849px) {
  body.woocommerce-cart #main .cart-container .woocommerce.row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  body.woocommerce-cart #main .cart-sidebar { padding: 18px !important; }
}
@media (max-width: 549px) {
  body.woocommerce-cart #main .cart-sidebar { padding: 16px !important; }
  body.woocommerce-cart #main .cart_totals .shipping-calculator-button { width: 100%; }
  body #main .hr-fbt .products { grid-template-columns: repeat(3, minmax(144px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
  body #main .hr-fbt .products > .col { scroll-snap-align: start; }
  body #main .hr-fbt .box-text { padding: 9px !important; }
}
@media (prefers-reduced-motion: reduce) {
  body #main .hr-fbt .products { scroll-behavior: auto; }
}
