/* Native Woo fields follow the Duke underline language. */
.account-content input.input-text,
.account-content input[type=email],
.account-content input[type=password],
.account-content input[type=text],
.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
  border-width:0 0 1px;
  border-style:solid;
  border-color:#aaa;
  border-radius:0;
  background:transparent;
  padding-inline:0;
  color:#171717;
  caret-color:#171717;
  box-shadow:none;
}
.account-content input::placeholder,
.woocommerce-checkout input::placeholder,
.woocommerce-checkout textarea::placeholder { color:#646464; opacity:1; }
.account-content input.input-text:focus,
.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus { border-bottom-color:#171717; box-shadow:none; }
.account-content input.input-text:focus-visible,
.woocommerce-checkout input.input-text:focus-visible,
.woocommerce-checkout select:focus-visible,
.woocommerce-checkout textarea:focus-visible { outline:2px solid #171717; outline-offset:4px; }
.woocommerce-checkout .select2-container .select2-selection--single {
  border-width:0 0 1px;
  border-style:solid;
  border-color:#aaa;
  border-radius:0;
  background:transparent;
}
.woocommerce-checkout .select2-container .select2-selection__rendered { padding-left:0; }
.woocommerce-checkout .select2-container--focus .select2-selection--single { border-bottom-color:#171717; }
.pdp-related.featured { padding-inline:0; }

@media(max-width:767px) {
  /* Bricks' gallery wrapper defaults to wrapping; explicitly keep one row. */
  .pdp-layout .pdp-gallery {
    --duke-gallery-height:clamp(240px,37svh,340px);
    display:flex!important;
    flex-flow:row nowrap!important;
    align-items:stretch;
    width:100%;
    max-width:100%;
    min-width:0;
    height:var(--duke-gallery-height);
    gap:8px;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x mandatory;
    overscroll-behavior-x:contain;
    touch-action:pan-x pan-y;
    scrollbar-width:none;
  }
  .pdp-layout .pdp-gallery>li {
    flex:0 0 calc(100% - 24px);
    width:calc(100% - 24px)!important;
    height:100%!important;
    aspect-ratio:auto;
    scroll-snap-align:start;
    scroll-snap-stop:always;
  }
  .pdp-layout .pdp-gallery>li:only-child { flex-basis:100%; width:100%!important; }
  .pdp-layout .pdp-gallery figure,
  .pdp-layout .pdp-gallery figure>a { height:var(--duke-gallery-height); width:100%; }
  .pdp-layout .pdp-gallery img { height:100%!important; max-height:100%; width:100%!important; aspect-ratio:auto!important; object-fit:contain; }
  .pdp-layout .pdp-info { display:flex; flex-direction:column; }
  .pdp-info .pdp-category { order:0; margin-bottom:6px; }
  .pdp-info .pdp-title { order:1; margin-bottom:10px; font-size:30px; }
  .pdp-info .pdp-price { order:2; margin-bottom:16px; }
  .pdp-info .pdp-form { order:3; }
  .pdp-info .pdp-size-link { order:4; align-self:flex-start; margin:6px 0 18px; }
  .pdp-info .pdp-short { order:5; margin-bottom:0; }
  .pdp-info .pdp-accordions { order:6; }
  .pdp-form table.variations { margin-bottom:8px; }
  .pdp-form .variations tr { margin-bottom:8px; }
  .pdp-form .duke-swatches { gap:6px; }
  .pdp-form .duke-swatch { min-width:44px; height:44px; padding-inline:10px; }
}
