/* Shared storefront controls. Keep Journal selectors and commerce handlers intact. */
body.rw-modern .rm-view button,
body.rw-modern .rc-buy > .rc-outline {
  min-height: 44px!important;
  padding: 10px 14px;
  font-size: 14px;
}
body.rw-modern .rm-results-toolbar {flex-wrap: wrap; gap: 12px;}
body.rw-modern .products-filter {flex-wrap: wrap; gap: 12px;}
body.rw-modern .products-filter .grid-list {display: flex; align-items: center; gap: 8px; flex-wrap: wrap;}
body.rw-modern .products-filter .view-btn {width: 44px!important; min-width: 44px; height: 44px!important;}
body.rw-modern .products-filter .select-group {display: flex; flex-wrap: wrap; gap: 12px; min-width: 0;}
body.rw-modern .products-filter .input-group {min-width: 0; max-width: 100%;}
body.rw-modern .products-filter select {min-height: 44px!important; font-size: 14px;}
body.rw-modern .product-thumb .name a {white-space: normal; overflow-wrap: break-word; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; line-height: 1.5;}
body.rw-modern .product-thumb .cart-group {display: flex; flex-wrap: wrap; align-items: center; gap: 8px;}
body.rw-modern .product-thumb .cart-group > .btn-cart {flex: 1 1 130px; min-height: 48px!important;}
body.rw-modern .product-thumb .wish-group {display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px;}
body.rw-modern .product-thumb .wish-group .btn {min-height: 44px!important; min-width: 44px!important;}

/* Horizontal quantity control: no stacked arrow hit areas or squeezed input. */
body.rw-modern #product-product.rw-product-page .stepper,
body.rw-modern :is(.product-thumb,.checkout-section) .stepper {
  display: flex!important;
  flex: 0 0 144px!important;
  width: 144px!important;
  min-width: 144px!important;
  max-width: 144px!important;
  height: 48px!important;
  padding: 0!important;
  border: 1px solid #b9c7d5!important;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
body.rw-modern #product-product.rw-product-page .stepper button,
body.rw-modern :is(.product-thumb,.checkout-section) .stepper button {
  position: static!important;
  inset: auto!important;
  display: flex!important;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px!important;
  width: 44px!important;
  min-width: 44px!important;
  height: 46px!important;
  min-height: 46px!important;
  padding: 0!important;
  border: 0!important;
  border-radius: 0!important;
  color: #14283f!important;
  background: #f1f5f8!important;
  cursor: pointer;
}
body.rw-modern #product-product.rw-product-page .stepper button:hover,
body.rw-modern :is(.product-thumb,.checkout-section) .stepper button:hover {background: #e2eaf1!important;}
body.rw-modern #product-product.rw-product-page .stepper button::before,
body.rw-modern :is(.product-thumb,.checkout-section) .stepper button::before {font: 400 24px/1 Arial,sans-serif!important; color: inherit!important;}
body.rw-modern #product-product.rw-product-page .stepper .fa-angle-down::before,
body.rw-modern :is(.product-thumb,.checkout-section) .stepper .fa-angle-down::before {content: "−"!important;}
body.rw-modern #product-product.rw-product-page .stepper .fa-angle-up::before,
body.rw-modern :is(.product-thumb,.checkout-section) .stepper .fa-angle-up::before {content: "+"!important;}
body.rw-modern #product-product.rw-product-page .stepper input:not([type=hidden]),
body.rw-modern :is(.product-thumb,.checkout-section) .stepper input:not([type=hidden]) {
  position: static!important;
  flex: 1 1 54px!important;
  width: 54px!important;
  min-width: 0!important;
  max-width: none!important;
  height: 46px!important;
  min-height: 46px!important;
  padding: 0 3px!important;
  border: 0!important;
  border-radius: 0!important;
  background: #fff!important;
  box-shadow: none!important;
  font: 16px/1.4 var(--rw-font,Arial,sans-serif)!important;
  color: #14283f!important;
  text-align: center;
}
body.rw-modern #product-product.rw-product-page .stepper input[type=hidden],
body.rw-modern :is(.product-thumb,.checkout-section) .stepper input[type=hidden] {display: none!important;}

/* Product purchase area and review navigation. */
body.rw-modern #product-product.rw-product-page .rating-page {
  display: flex!important;
  flex-wrap: wrap;
  align-items: center!important;
  justify-content: flex-start;
  gap: 4px 16px;
  padding: 12px 0!important;
  margin: 8px 0 0!important;
  min-height: 0;
  border-bottom: 1px solid #dce3eb;
}
body.rw-modern #product-product.rw-product-page .rating-stars {display: inline-flex; flex: 0 0 auto; align-items: center; gap: 3px; height: 24px;}
body.rw-modern #product-product.rw-product-page .rating-stars .fa-stack {width: 18px; height: 22px; line-height: 22px; font-size: 17px;}
body.rw-modern #product-product.rw-product-page .rating-stars .fa-star-o {color: #687d91;}
body.rw-modern #product-product.rw-product-page .rating-stars .fa-star {color: #ab7200;}
body.rw-modern #product-product.rw-product-page .review-links {display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-width: 0; margin: 0;}
body.rw-modern #product-product.rw-product-page .review-links a {display: inline-flex; align-items: center; min-height: 44px; padding: 0; color: #23445f!important; font: 14px/1.4 var(--rw-font,Arial,sans-serif); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;}
body.rw-modern #product-product.rw-product-page .review-links b {display: none;}
body.rw-modern #product-product.rw-product-page .stepper-group.cart-group {grid-template-columns: 144px minmax(0,1fr); gap: 8px 12px; align-items: center;}
body.rw-modern #product-product.rw-product-page .stepper-group > .control-label {display: block!important; grid-column: 1/-1; width: auto; margin: 0!important; font-size: 14px; font-weight: 600; color: #263d54;}
body.rw-modern #product-product.rw-product-page #button-cart {min-height: 48px!important; height: auto; display: flex; align-items: center; justify-content: center; gap: 8px; white-space: normal; line-height: 1.4;}
body.rw-modern #product-product.rw-product-page .extra-group [data-quick-buy] {display: flex!important; width: 100%; min-height: 48px!important; padding: 12px 18px!important; border: 1px solid #14283f!important; border-radius: 6px; background: #14283f!important; color: #fff!important; font: 600 15px/1.4 var(--rw-font,Arial,sans-serif)!important; cursor: pointer;}
body.rw-modern #product-product.rw-product-page .extra-group [data-quick-buy]:hover {background: #28485f!important;}
body.rw-modern #product-product.rw-product-page .extra-group [data-quick-buy]::before {display: none!important;}
body.rw-modern #product-product.rw-product-page .wishlist-compare {display: grid!important; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; width: 100%!important; align-self: stretch!important;}
body.rw-modern #product-product.rw-product-page .wishlist-compare .btn {display: flex!important; align-items: center; justify-content: center; gap: 8px; width: 100%; min-width: 0; min-height: 48px!important; margin: 0; padding: 10px!important; border: 1px solid #b9c7d5!important; border-radius: 6px; background: #fff!important; color: #263d54!important; font: 14px/1.4 var(--rw-font,Arial,sans-serif)!important; white-space: normal;}
body.rw-modern #product-product.rw-product-page .wishlist-compare .btn:hover {background: #f1f5f8!important;}
body.rw-modern #product-product.rw-product-page .wishlist-compare .btn::before {position: static!important; margin: 0!important; color: inherit!important; font-size: 19px;}
body.rw-modern #product-product.rw-product-page .wishlist-compare .btn-text {display: inline!important;}
body.rw-modern #product-product.rw-product-page .buttons-wrapper .btn-text {font: inherit!important;}
body.rw-modern .rc-buy h1 {overflow-wrap: break-word;}
body.rw-modern .rc-specs td {overflow-wrap: anywhere;}
body.rw-modern .rc-enquiry-item form {flex-wrap: wrap;}

@media(max-width:1000px) {
  body.rw-modern #product-product.rw-product-page .product-info,
  body.rw-modern .rc-product {grid-template-columns: minmax(0,1fr);}
  body.rw-modern .rc-gallery {min-width: 0; max-width: 600px; width: 100%; margin-inline: auto;}
  body.rw-modern .rc-main-photo img {max-height: 520px;}
}
@media(max-width:600px) {
  body.rw-modern .products-filter .select-group {width: 100%; flex-direction: column;}
  body.rw-modern .products-filter .input-group {width: 100%; margin: 0;}
  body.rw-modern .products-filter select {font-size: 16px;}
  body.rw-modern .product-thumb .cart-group > .btn-cart {flex-basis: 100%;}
  body.rw-modern #product-product.rw-product-page .rating-page {align-items: flex-start!important; flex-direction: column; gap: 2px;}
  body.rw-modern #product-product.rw-product-page .review-links {gap: 12px;}
  body.rw-modern #product-product.rw-product-page #button-cart {font-size: 14px!important; padding: 10px!important;}
  body.rw-modern #product-product.rw-product-page .wishlist-compare {gap: 10px;}
  body.rw-modern .rc-main-photo img {max-height: 390px;}
}
@media(max-width:380px) {
  body.rw-modern #product-product.rw-product-page .stepper-group.cart-group {grid-template-columns: minmax(0,1fr);}
  body.rw-modern #product-product.rw-product-page .stepper-group #button-cart {width: 100%;}
  body.rw-modern #product-product.rw-product-page .wishlist-compare {grid-template-columns: minmax(0,1fr);}
}

/* The checkout cart keeps quantity and actions usable inside its scrollable table. */
body.rw-modern .checkout-section .td-qty .input-group {display:flex; flex-direction:column; align-items:center; gap:8px; min-width:144px; max-width:none!important;}
body.rw-modern .checkout-section .td-qty .input-group .stepper {flex-basis:48px!important;}
body.rw-modern .checkout-section .td-qty .input-group-btn {display:flex; width:100%; gap:8px; justify-content:center;}
body.rw-modern .checkout-section .td-qty .input-group-btn .btn {min-width:44px; min-height:44px; margin:0;}

body.rw-modern .rm-product-actions {display:grid; grid-template-columns:minmax(0,1fr) 44px; gap:8px;}
body.rw-modern .rm-product-actions a {min-width:0; min-height:44px; overflow-wrap:break-word;}
body.rw-modern .rm-product-actions button {width:44px!important; min-width:44px; min-height:44px!important;}
@media(max-width:380px) {body.rw-modern .rm-home .rm-products {grid-template-columns:minmax(0,1fr);}}

/* Reacware: scope overrides to the Journal add-to-cart confirmation. */
body.rw-modern .notification-wrapper:has(> .notification-cart) {
  max-width: 100%;
  max-height: 100dvh;
  overflow-y: auto;
  padding-bottom: 16px;
}
body.rw-modern .notification.notification-cart {
  box-sizing: border-box;
  flex: none;
  position: relative;
  width: 440px;
  max-width: calc(100% - 32px);
  margin: 16px;
  padding: 26px 24px 22px;
  background: #fff;
  color: #14283f;
  border: 1px solid #dfe5eb;
  border-top: 3px solid #14283f;
  border-radius: 8px;
  box-shadow: 0 12px 36px rgb(20 40 63 / 14%);
  font-family: inherit;
}
body.rw-modern .notification-cart .notification-content {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 0;
  margin: 0;
}
body.rw-modern .notification-cart .notification-content > img {
  flex: 0 0 72px;
  width: 72px;
  height: 88px;
  object-fit: contain;
  padding: 6px;
  margin: 4px 0 0;
  background: #f7f9fb;
  border: 1px solid #e9edf1;
  border-radius: 5px;
}
body.rw-modern .notification-cart .notification-content > div {
  flex: 1;
  min-width: 0;
  padding-top: 4px;
}
body.rw-modern .notification-cart .notification-title {
  margin: 0 20px 10px 0;
  color: #14283f;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -.15px;
  overflow-wrap: anywhere;
}
body.rw-modern .notification-cart .notification-text {
  color: #526375;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
body.rw-modern .notification-cart .notification-text a {
  color: #243e59 !important;
  text-decoration: underline;
  text-decoration-color: #a8b6c4;
  text-underline-offset: 3px;
}
body.rw-modern .notification-cart .notification-text a:hover {
  color: #14283f !important;
  text-decoration-color: currentColor;
}
body.rw-modern .notification-cart .notification-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid #e9edf1;
}
body.rw-modern .notification-cart .notification-buttons > a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #cbd5df !important;
  border-radius: 5px !important;
  background: #fff !important;
  color: #14283f !important;
  box-shadow: none !important;
  font-family: inherit;
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none !important;
  text-decoration: none;
  white-space: normal;
}
body.rw-modern .notification-cart .notification-buttons > a.notification-checkout {
  background: #14283f !important;
  border-color: #14283f !important;
  color: #fff !important;
}
body.rw-modern .notification-cart .notification-buttons > a.notification-view-cart:hover {
  background: #f1f5f8 !important;
  border-color: #9baebe !important;
}
body.rw-modern .notification-cart .notification-buttons > a.notification-checkout:hover {
  background: #29445f !important;
  border-color: #29445f !important;
}
body.rw-modern .notification-cart .notification-buttons > a::before,
body.rw-modern .notification-cart .notification-buttons > a::after {
  margin: 0;
  color: inherit;
  font-size: 14px;
}
body.rw-modern .notification-cart .notification-view-cart::before {
  content: none !important;
}
body.rw-modern .notification-cart .notification-checkout::after {
  content: '\2192' !important;
  font-family: inherit !important;
}
body.rw-modern .notification-cart .btn.notification-close {
  position: absolute;
  inset: 4px 4px auto auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: transparent !important;
  color: #526375 !important;
  box-shadow: none !important;
  transform: none;
}
body.rw-modern .notification-cart .btn.notification-close::before {
  content: '\00d7' !important;
  font-family: Arial, sans-serif !important;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  color: inherit;
  margin: 0;
}
body.rw-modern .notification-cart .btn.notification-close:hover {
  background: #edf2f6 !important;
  color: #14283f !important;
}
body.rw-modern .notification-cart a:focus-visible,
body.rw-modern .notification-cart button:focus-visible {
  outline: 2px solid #526e8c !important;
  outline-offset: 3px;
}
@media (max-width: 480px) {
  body.rw-modern .notification.notification-cart {
    max-width: calc(100% - 24px);
    margin: 12px;
    padding: 24px 18px 18px;
  }
  body.rw-modern .notification-cart .notification-content { gap: 12px; }
  body.rw-modern .notification-cart .notification-content > img {
    flex-basis: 56px;
    width: 56px;
    height: 72px;
  }
  body.rw-modern .notification-cart .notification-title { font-size: 14px; margin-right: 24px; }
  body.rw-modern .notification-cart .btn.notification-close {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }
}
