/* DESIGN.md forbids sale badges; WooCommerce prints a rounded one in grids. */
.wc-block-grid__product-onsale,
.woocommerce span.onsale {
  display: none;
}
.wc-block-components-quantity-selector,
.wc-block-components-quantity-selector__input,
.wp-block-woocommerce-cart .wc-block-components-quantity-selector__button,
.wp-block-woocommerce-checkout .wc-block-components-quantity-selector__button,
.wc-block-components-quantity-selector :is(button, .wc-block-components-quantity-selector__button--minus, .wc-block-components-quantity-selector__button--plus) {
  border-radius: 0;
}
/* The Checkout block ships its own 4-5px radii; the system is square. Radio
   dots and spinners keep their circles. */
:is(.wp-block-woocommerce-checkout, .wp-block-woocommerce-cart) :is(
  input:not([type="radio"]),
  select,
  textarea,
  button,
  .wc-block-components-address-card,
  .wc-blocks-components-select__container,
  .wc-blocks-components-select__select,
  .wc-block-components-text-input,
  .wc-block-components-panel,
  .wc-block-components-notice-banner,
  .wc-block-checkout__no-payment-methods-notice,
  .wc-block-components-order-summary-item__quantity,
  .wc-block-components-radio-control-accordion-option,
  .wc-block-components-checkout-step,
  [class*="wc-block-components-order-summary"],
  [class*="__container"]
) {
  /* Woo's block bundle prints after theme CSS, so the invariant needs weight. */
  border-radius: 0 !important;
}
.wp-block-woocommerce-checkout-order-summary-block,
.checkout-order-summary-block-fill {
  border-radius: 0 !important;
}
.wp-block-group {
  min-width: 0;
}
.dv-text-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.6;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.dv-text-button .wp-block-button__link::after {
  content: "";
  flex: 0 0 28px;
  width: 28px;
  height: 12px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 12'%3E%3Cpath d='M0 6h25m-5-5 5 5-5 5' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.dv-text-button .wp-block-button__link:hover {
  text-decoration: underline;
}
.dv-text-button .wp-block-button__link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
[dir="rtl"] .dv-text-button .wp-block-button__link::after {
  transform: scaleX(-1);
}
.wp-block-buttons {
  min-width: 0;
}
.dv-product-collection .product-card {
  min-width: 0;
}
.dv-product-collection .product-card > a {
  display: block;
  color: inherit;
  text-decoration: none;
}
/* Same frame rule as the catalogue: the photograph fills its 5:6 crop. */
.dv-product-collection .product-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
}
.dv-product-collection .product-card a:hover :is(h2, h3) {
  text-decoration: underline;
}
.page-content > .wp-block-heading:first-child {
  margin-block-start: 0;
}
.wp-block-woocommerce-checkout .wc-block-checkout__actions .wc-block-components-button.wc-block-components-checkout-place-order-button {
  min-height: 54px;
}
.wp-block-woocommerce-cart .wc-block-cart table.wc-block-cart-items td.wc-block-cart-item__image img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.wp-block-woocommerce-checkout .wc-block-components-order-summary-item__image img {
  object-fit: contain;
}
.woocommerce .password-input {
  position: relative;
  display: block;
}
.woocommerce .password-input input {
  padding-inline-end: 52px;
}
.woocommerce .show-password-input {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: 0;
  display: grid;
  width: 48px;
  min-height: 48px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.woocommerce .show-password-input::after {
  content: "";
  width: 22px;
  height: 22px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z' fill='none' stroke='black' stroke-width='1.5'/%3E%3Ccircle cx='12' cy='12' r='3' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.woocommerce .show-password-input:hover {
  background: var(--paper);
}
@media (max-width: 640px) {
  .dv-text-button .wp-block-button__link {
    font-size: 14px;
  }
  .wp-block-woocommerce-cart .wc-block-cart table.wc-block-cart-items td.wc-block-cart-item__image img {
    width: 56px;
    height: 56px;
  }
}
@media (any-pointer: coarse) {
  .wc-block-components-checkbox label,
  .woocommerce .woocommerce-form__label-for-checkbox {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
