/* Functional visibility states shared by storefront components. */
[hidden],
.d-none,
.is-hidden,
.account-pane:not(.is-active),
.cart-pane:not(.active),
.cart-drawer:not(.is-active),
.cart-drawer-backdrop:not(.is-active),
.collection-drawer:not(.is-active),
.collection-drawer-backdrop:not(.is-active),
.product-lightbox:not(.is-open),
.account-return-quantity,
.bank-description-copy .copy-check,
.bank-description-copy.copied .copy-icon,
.product-lightbox__btn--zoom .zoom-out-icon,
.product-lightbox.is-zoomed .product-lightbox__btn--zoom .zoom-in-icon {
  display: none !important;
}

.account-return-product:has(input:checked) .account-return-quantity,
.bank-description-copy.copied .copy-check,
.product-lightbox.is-zoomed .product-lightbox__btn--zoom .zoom-out-icon {
  display: block !important;
}

/* Keep dialogs usable independently of the future layout and visual design. */
.mobile-menu-drawer.is-active,
.cart-drawer.is-active,
.collection-drawer.is-active,
.product-lightbox.is-open,
.site-search-overlay:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: auto;
  background: Canvas;
  color: CanvasText;
}

img {
  max-width: 100%;
  height: auto;
}

svg {
  width: 1.5em;
  height: 1.5em;
}

input, select, textarea {
  max-width: 100%;
  box-sizing: border-box;
  font-size: max(1em, 16px);
}
