/* Shared responsive corrections for support, product variants and the footer. */
.product-purchase-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.product-purchase-actions button { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #315641; border-radius: 6px; background: #315641; color: #fff; font: inherit; font-size: 14px; line-height: 1.4; cursor: pointer; touch-action: manipulation; }
.product-purchase-actions button:first-child { background: #fff; color: #315641; }
.product-purchase-actions button:disabled { opacity: .55; cursor: default; }
.product-purchase-notice { margin: 10px 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.product-purchase-actions [hidden] { display: none !important; }
.quantity-control button, .cart-quantity button, .drawer-quantity button { touch-action: manipulation; }
.quantity-control input, .cart-quantity input { font-size: 16px; touch-action: manipulation; }
.cart-product__image a { display: block; width: 100%; height: 100%; }
.cart-product__top h2 a { color: inherit; text-decoration: none; }
.comparison-product a { display: grid; justify-items: center; gap: 8px; color: inherit; text-decoration: none; }
.comparison-product a:focus-visible, .product-feature-badges a:focus-visible { outline: 2px solid #315641; outline-offset: 3px; }
.product-feature-badges a { display: grid; gap: 6px; height: 100%; color: inherit; text-decoration: none; }
.member-home-card { scroll-margin-top: 110px; }
.member-tabs a[aria-current] { border-color: #315641; background: #edf3e7; }
body .pack-member-strip > span { flex: 0 0 35px; width: 35px; height: 35px; white-space: nowrap; font-size: 10px; line-height: 1; }
.storefront-variants .storefront-variant-options { scroll-snap-type: none; }
@media (max-width: 760px) {
  body .pack-member-strip { flex-wrap: wrap; justify-content: center; max-width: calc(100vw - 32px); border-radius: 12px; }
  body .pack-member-strip > b { flex: 0 0 100%; margin: 2px 0; text-align: center; }
  .storefront-variants .storefront-variant-option { flex-basis: calc((100% - 20px) / 3); }
  .storefront-variants .storefront-variant-option b { font-size: 11px; white-space: normal; overflow-wrap: anywhere; }
  .storefront-variants .storefront-variant-option small { font-size: 10px; }
}
.contact-page {
  width: calc(100% - 40px);
  max-width: 1040px;
  margin: 0 auto;
  padding: 36px 0 52px !important;
  font-size: 16px;
  line-height: 1.65;
}
.contact-page .portal-head { margin: 0 0 24px; }
.contact-page .portal-head > span { font-size: 12px; color: var(--muted); }
.contact-page .portal-head h1 { margin: 10px 0 12px; font-size: 32px; line-height: 1.3; }
.contact-page .portal-head p { max-width: 650px; margin: 0; }
.contact-page .legal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.contact-page .portal-card { min-width: 0; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-page .portal-card h2 { margin: 0 0 10px; font-size: 19px; line-height: 1.5; }
.contact-page .portal-card p { margin: 0 0 16px; overflow-wrap: anywhere; }
.contact-page .portal-card a { overflow-wrap: anywhere; }
.contact-page .portal-card .btn { min-height: 44px; font-size: 14px; }
.contact-page #supportTicketForm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-page #supportTicketForm label { display: grid; min-width: 0; gap: 6px; font-size: 14px; }
.contact-page #supportTicketForm label:nth-of-type(n+5),
.contact-page #supportTicketForm [data-support-result] { grid-column: 1 / -1; }
.contact-page #supportTicketForm input,
.contact-page #supportTicketForm select,
.contact-page #supportTicketForm textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
}
.contact-page #supportTicketForm textarea { resize: vertical; }
.contact-page #supportTicketForm button { justify-self: start; }
.scratcher-page .scratcher-visual.is-oval55-dimensions > img { transform: scale(.925126); }
.growth-product-summary { max-width: 100%; min-width: 0; }
.seo-product-detail[data-category="cat-toilet"] .seo-picture-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seo-product-detail[data-category="cat-toilet"] .seo-picture-grid a { display: block; }
.seo-product-detail[data-category="cat-toilet"] .seo-picture-grid img { padding: 12px; }
@media (max-width: 760px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .header-actions { grid-column: 2; }
  .seo-product-detail[data-category="cat-toilet"] .seo-picture-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .seo-product-detail[data-category="cat-toilet"] .seo-picture-grid img { padding: 8px; }
  .seo-product-detail[data-category="cat-toilet"] .seo-picture-grid figcaption { font-size: 11px; }
}
body .subscription-choice-fields select { font-size: 16px; }
.storefront-variants .storefront-variant-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.storefront-variant-heading > strong { min-width: 0; font-size: 14px; line-height: 1.45; }
.variant-scroll-controls { display: flex; gap: 6px; }
.variant-scroll-controls[hidden] { display: none !important; }
.variant-scroll-controls button {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  place-items: center;
  border: 1px solid #d8cdbf;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  touch-action: manipulation;
}
.variant-scroll-controls button img { width: 18px; height: 18px; }
.variant-scroll-controls button:disabled { opacity: .35; cursor: default; }
.variant-scroll-controls button:focus-visible { outline: 2px solid #315641; outline-offset: 2px; }
.storefront-variants .storefront-variant-options { position: relative; min-width: 0; scrollbar-width: thin; scrollbar-color: #8c9f87 #eef2eb; }
.site-footer .footer-social { min-width: 0; overflow: visible; }
.site-footer .footer-social .footer-qr-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 10px 16px; align-items: start; }
.site-footer .footer-qr { width: auto; min-width: 0; flex: none; text-align: left; }
.site-footer .footer-qr [data-social-direct] { display: flex; min-height: 44px; padding: 8px 0; align-items: center; gap: 6px; font-size: 14px; line-height: 1.4; white-space: nowrap; }
.site-footer .footer-qr > .footer-qr__placeholder { display: grid; width: 112px; max-width: 100%; height: auto; margin: 8px 0 12px; }
.footer-qr-popover button { width: 44px; height: 44px; }
@media (max-width: 760px) {
  .contact-page { width: calc(100% - 32px); padding: 26px 0 36px !important; }
  .contact-page .portal-head h1 { font-size: 26px; }
  .contact-page .portal-head p { font-size: 15px; }
  .contact-page .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-page .portal-card { padding: 20px 0; }
  .contact-page #supportTicketForm { grid-template-columns: minmax(0, 1fr); }
  .contact-page #supportTicketForm button { width: 100%; }
  .site-footer .footer-grid--business { gap: 26px; }
  .site-footer .footer-col, .site-footer .footer-social { text-align: left; }
  .site-footer .footer-company { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
  .site-footer .footer-company > h3,
  .site-footer .footer-company > span,
  .site-footer .footer-company > address { grid-column: 1 / -1; }
  .site-footer .footer-company > a { min-height: 44px; margin: 0; font-size: 12px; line-height: 1.5; display: flex; align-items: center; }
  .site-footer .footer-social h3 { margin-bottom: 10px; }
  .site-footer .footer-bottom { margin-top: 28px; padding-right: 56px; gap: 10px; font-size: 12px; line-height: 1.6; }
  .purchase-card .purchase-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .purchase-actions .btn { min-width: 0; min-height: 48px; padding: 10px 8px; font-size: 13px; line-height: 1.4; white-space: nowrap; }
  body .back-to-top { top: auto !important; bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important; }
  body .line-support { right: 14px !important; bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important; }
  body .back-to-top.show { transform: none; }
  body .back-to-top:hover { transform: translateY(-2px); }
}
/* iOS Safari zooms the page when a focused field is under 16px; keep phone form fields at 16px. */
@media (max-width: 760px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]):not([type="file"]),
  select,
  textarea { font-size: 16px !important; }
}
/* Checkout status rows (empty cart, eligibility check) have no product image; give the message the full width. */
.checkout-items article:has(> div:first-child) { grid-template-columns: minmax(0, 1fr) auto; }
/* The cat-goods header label must not push the account/cart/menu icons onto a second row. */
@media (max-width: 760px) {
  .header-inner .header-actions { grid-row: 1; }
  .header-inner .goods-page-label { grid-column: 1 / -1; grid-row: 2; margin-top: -4px; }
  .product-simple { grid-template-columns: minmax(0, 1fr); }
  .product-simple > * { min-width: 0; }
}
