/* Product purchase controls and information layout. Only applies to product pages. */
body.single-product .summary .rey-cartBtnQty {
  display: grid !important;
  grid-template-columns: 132px minmax(180px, 1fr) auto !important;
  align-items: stretch !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 710px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.single-product .summary .quantity {
  box-sizing: border-box !important;
  width: 132px !important;
  min-width: 0 !important;
  height: 54px !important;
  min-height: 54px !important;
  margin: 0 !important;
  border: 1px solid #aabbd2 !important;
  border-radius: 8px !important;
  background: #fff !important;
  overflow: hidden;
}
body.single-product .summary .quantity .rey-qtyField {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) 42px !important;
  align-items: stretch !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  background: transparent !important;
}
body.single-product .summary .quantity .cartBtnQty-control {
  position: static !important;
  transform: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 100% !important;
  min-height: 52px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #142655 !important;
  background: #f2f6fb !important;
  cursor: pointer;
  touch-action: manipulation;
}
body.single-product .summary .quantity .cartBtnQty-control.--minus { grid-column: 1; grid-row: 1; border-right: 1px solid #dce5f0; }
body.single-product .summary .quantity .cartBtnQty-control.--plus { grid-column: 3; grid-row: 1; border-left: 1px solid #dce5f0; }
body.single-product .summary .quantity input.qty {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 52px !important;
  min-height: 52px !important;
  margin: 0 !important;
  padding: 0 2px !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #142655 !important;
  background: #fff !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  text-align: center !important;
  font-variant-numeric: tabular-nums;
}
body.single-product .summary .quantity .cartBtnQty-control:hover,
body.single-product .summary .quantity .cartBtnQty-control:focus-visible { background: #e2ebf8 !important; }
body.single-product .summary .quantity .cartBtnQty-control:focus-visible,
body.single-product .summary .quantity input.qty:focus-visible,
body.single-product .summary form.cart .single_add_to_cart_button:focus-visible,
body.single-product .branch-product-info-link:focus-visible,
body.single-product .branch-product-info-close:focus-visible {
  outline: 3px solid #6d91df !important;
  outline-offset: 2px !important;
}
body.single-product .summary form.cart .single_add_to_cart_button {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 54px !important;
  height: 54px !important;
  margin: 0 !important;
  padding: 0 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #1d326f !important;
  border-radius: 8px !important;
  color: #fff !important;
  background: #213773 !important;
  box-shadow: 0 3px 8px rgba(17, 30, 73, .14) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: .01em;
  white-space: nowrap;
  touch-action: manipulation;
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
body.single-product .summary form.cart .single_add_to_cart_button:hover {
  background: #142657 !important;
  box-shadow: 0 5px 14px rgba(17, 30, 73, .22) !important;
  transform: translateY(-1px);
}
body.single-product .summary .rey-wishlistBtn-wrapper { margin: 0 !important; align-self: center; }

/* Desktop: a navigation rail beside one readable content pane. */
@media (min-width: 768px) {
  body.single-product .rey-wcPanels.branch-product-info-ready {
    display: grid !important;
    grid-template-columns: minmax(190px, 240px) minmax(0, 1fr) !important;
    gap: clamp(26px, 4vw, 64px) !important;
    align-items: start;
    max-width: 1200px !important;
    margin: 52px auto 64px !important;
    padding: 28px clamp(20px, 3vw, 40px) !important;
    border: 1px solid #dce5f0;
    border-radius: 14px;
    background: #fff;
  }
  body.single-product .branch-product-info-ready .branch-product-info-nav {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    gap: 6px;
    position: sticky;
    top: 110px;
  }
  body.single-product .branch-product-info-ready .rey-wcPanel {
    display: none !important;
    grid-column: 2;
    grid-row: 1;
    width: 100% !important;
    max-width: none !important;
  }
  body.single-product .branch-product-info-ready .rey-wcPanel.branch-product-info-active:not([hidden]) { display: block !important; }
  body.single-product .branch-product-info-ready .branch-product-drawer { border: 0; }
  body.single-product .branch-product-info-ready .branch-product-drawer > summary { display: none !important; }
  body.single-product .branch-product-info-ready .branch-drawer-content {
    padding: 0 !important;
    max-width: 780px;
    color: #344054;
    font-size: 16px;
    line-height: 1.7;
  }
}
body.single-product .branch-product-info-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  color: #354561;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
body.single-product .branch-product-info-link:hover { color: #162b60; background: #f1f5fb; }
body.single-product .branch-product-info-link[aria-current="true"] { color: #172c64; background: #eaf1fc; }
body.single-product .branch-product-info-link[aria-current="true"]::after { content: "→"; margin-left: 12px; font-size: 20px; line-height: 1; }
body.single-product .branch-product-info-ready .rey-wcPanel--reviews .rey-reviewsBtn { display: none !important; }
body.single-product .branch-product-info-ready .rey-wcPanel--reviews .woocommerce-Reviews {
  display: block !important;
  max-width: none !important;
}
body.single-product .woocommerce-Reviews.branch-no-reviews #comments,
body.single-product .woocommerce-Reviews:has(.woocommerce-noreviewsWrapper) #comments {
  margin: 0 0 16px !important;
  padding: 0 !important;
}
body.single-product .woocommerce-Reviews.branch-no-reviews .woocommerce-Reviews-title,
body.single-product .woocommerce-Reviews:has(.woocommerce-noreviewsWrapper) .woocommerce-Reviews-title {
  margin: 0 !important;
  padding: 0 !important;
}
body.single-product .woocommerce-Reviews.branch-no-reviews .woocommerce-noreviewsWrapper,
body.single-product .woocommerce-Reviews:has(.woocommerce-noreviewsWrapper) .woocommerce-noreviewsWrapper {
  display: none !important;
}
body.single-product .woocommerce-Reviews.branch-no-reviews .woocommerce-verification-required,
body.single-product .woocommerce-Reviews:has(.woocommerce-noreviewsWrapper) .woocommerce-verification-required {
  margin: 0 !important;
  padding: 0 !important;
}

/* Mobile: the three choices open a focused side drawer. */
@media (max-width: 767px) {
  body.single-product .summary .rey-cartBtnQty {
    grid-template-columns: minmax(0, 1fr) 52px !important;
    grid-template-rows: 54px 56px !important;
    gap: 10px !important;
    max-width: none;
  }
  body.single-product .summary .quantity {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 148px !important;
    max-width: 100% !important;
    height: 54px !important;
  }
  body.single-product .summary .rey-wishlistBtn-wrapper {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 52px !important;
    min-width: 52px !important;
    height: 54px !important;
    min-height: 54px !important;
  }
  body.single-product .summary .rey-wishlistBtn {
    width: 52px !important;
    height: 54px !important;
    border: 1px solid #aabbd2 !important;
    border-radius: 8px !important;
    background: #fff !important;
  }
  body.single-product .summary form.cart .single_add_to_cart_button {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    height: 56px !important;
    min-height: 56px !important;
  }
  body.single-product .rey-wcPanels.branch-product-info-ready {
    display: block !important;
    max-width: none !important;
    margin: 36px 16px 48px !important;
  }
  body.single-product .branch-product-info-ready .branch-product-info-nav { display: grid; gap: 9px; }
  body.single-product .branch-product-info-ready .branch-product-info-link {
    min-height: 58px;
    padding: 14px 18px;
    border: 1px solid #d6e1ef;
    border-radius: 10px;
    color: #172c64;
    background: #fff;
    box-shadow: 0 2px 6px rgba(17, 30, 73, .04);
  }
  body.single-product .branch-product-info-ready .branch-product-info-link::after { content: "›" !important; margin-left: 12px; font-size: 26px; font-weight: 400; }
  body.single-product .branch-product-info-ready .rey-wcPanel { display: none !important; }
}
body.branch-product-info-open { overflow: hidden !important; }
.branch-product-info-overlay[hidden] { display: none !important; }
.branch-product-info-overlay {
  position: fixed;
  z-index: 1000000;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: rgba(12, 25, 52, .54);
}
.branch-product-info-sheet {
  width: min(440px, 100vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -12px 0 40px rgba(12, 25, 52, .18);
}
.branch-product-info-sheet-header {
  flex: 0 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px 14px 24px;
  border-bottom: 1px solid #dce5f0;
}
.branch-product-info-sheet-header h2 { margin: 0 !important; color: #172c64; font-size: 20px !important; line-height: 1.3 !important; }
.branch-product-info-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  color: #172c64;
  background: #edf3fb;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.branch-product-info-sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 24px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.branch-product-info-sheet-body .branch-drawer-content { padding: 0 !important; color: #344054; font-size: 15px; line-height: 1.7; }
.single-product .branch-product-info-sheet-body .woocommerce-Reviews { display: block !important; }
.branch-product-info-sheet-body a { color: #172c64; text-decoration: underline; text-underline-offset: 3px; }
body.single-product .branch-product-info-close {
  color: #172c64 !important;
  background: #edf3fb !important;
  font-size: 30px !important;
  line-height: 1 !important;
}
@media (prefers-reduced-motion: reduce) {
  body.single-product .summary form.cart .single_add_to_cart_button { transition: none; transform: none; }
}
