/* ==========================================================================
   WooCommerce Styles
   ========================================================================== */

/* PHP-driven product catalog (woocommerce/archive-product.php) inside block themes */
.woocommerce.molecule-php-product-catalog .molecule-php-catalog-main {
  width: 100%;
  max-width: var(--wp--style--global--wide-size, 1200px);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--wp--style--root--padding-left, var(--wp--custom--spacing--outer, 1.25rem));
  padding-right: var(--wp--style--root--padding-right, var(--wp--custom--spacing--outer, 1.25rem));
  min-width: 0;
  box-sizing: border-box;
}

/* PHP shop: avoid horizontal scroll; tighten wide-size to viewport */
body.woocommerce.molecule-php-product-catalog {
  overflow-x: hidden;
}

.woocommerce.molecule-php-product-catalog .wp-site-blocks {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  box-sizing: border-box;
}

/* Classic shop toolbar: notices full width; sort + in-stock on the left (result count removed on PHP catalog). */
.woocommerce.molecule-php-product-catalog .molecule-php-shop-catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  width: 100%;
  padding-bottom: var(--wp--style--block-gap, 1.25rem);
}

.woocommerce.molecule-php-product-catalog .molecule-php-shop-catalog-toolbar .woocommerce-notices-wrapper {
  flex: 1 0 100%;
}

.woocommerce.molecule-php-product-catalog .molecule-php-shop-catalog-toolbar .woocommerce-notices-wrapper:empty {
  display: none;
}

.woocommerce.molecule-php-product-catalog .molecule-php-shop-catalog-toolbar .molecule-shop-catalog-sort-with-stock {
  margin-left: 0;
  flex: 0 0 auto;
  min-width: 0;
}

.woocommerce.molecule-php-product-catalog .molecule-php-shop-catalog-toolbar > form.woocommerce-ordering {
  margin-left: 0;
  flex: 0 0 auto;
}

/* Sort + in-stock: single horizontal row (shrink select before wrapping the bar). */
.woocommerce.molecule-php-product-catalog .molecule-shop-catalog-sort-with-stock {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  gap: 0.75rem 1rem;
}

.woocommerce.molecule-php-product-catalog .molecule-shop-catalog-sort-with-stock .woocommerce-ordering {
  flex: 0 1 auto;
  width: auto;
  max-width: min(100%, 15rem);
  min-width: 0;
  margin: 0;
}

.woocommerce.molecule-php-product-catalog .molecule-shop-catalog-sort-with-stock select.orderby {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.woocommerce.molecule-php-product-catalog .molecule-shop-catalog-sort-with-stock .molecule-shop-in-stock-toggle {
  flex: 0 0 auto;
  min-width: 0;
}

/* Responsive grid instead of WooCommerce float + fixed % widths (prevents overflow). */
.woocommerce.molecule-php-product-catalog #primary,
.woocommerce.molecule-php-product-catalog .site-main {
  min-width: 0;
  max-width: 100%;
}

.woocommerce.molecule-php-product-catalog ul.products {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem 1rem;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

.woocommerce.molecule-php-product-catalog ul.products::before,
.woocommerce.molecule-php-product-catalog ul.products::after {
  content: none;
  display: none;
}

.woocommerce.molecule-php-product-catalog ul.products li.product {
  float: none !important;
  width: auto !important;
  max-width: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important;
  min-width: 0;
}

@media (min-width: 480px) {
  .woocommerce.molecule-php-product-catalog ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 900px) {
  .woocommerce.molecule-php-product-catalog ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

.woocommerce.molecule-php-product-catalog .woocommerce-products-header {
  min-width: 0;
  max-width: 100%;
}

/* PHP catalog: product cards — grid row title + price, rounded thumbs, 1px hover stroke */
.woocommerce.molecule-php-product-catalog ul.products li.product a.woocommerce-LoopProduct-link {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 0.75rem;
  row-gap: 0.25rem;
  align-items: baseline;
  box-sizing: border-box;
  padding: 0.625rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  min-width: 0;
}

.woocommerce.molecule-php-product-catalog ul.products li.product a.woocommerce-LoopProduct-link:hover {
  border: 1px solid var(--border, #d4d4d4);
  background-color: color-mix(in oklab, var(--card, #fafafa) 65%, transparent);
}

.woocommerce.molecule-php-product-catalog ul.products li.product a.woocommerce-LoopProduct-link:focus-visible {
  outline: 2px solid var(--foreground, #0a0a0a);
  outline-offset: 3px;
}

.woocommerce.molecule-php-product-catalog ul.products li.product .molecule-loop-product-thumb-wrap {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 1;
  z-index: 0;
}

.woocommerce.molecule-php-product-catalog ul.products li.product .molecule-loop-product-thumb-wrap > img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 0.5rem;
}

.woocommerce.molecule-php-product-catalog ul.products li.product .molecule-loop-product-thumb-wrap .molecule-product-card-stock-badge--out-of-stock {
  position: absolute;
  z-index: 3;
  bottom: 0.625rem;
  left: 0.625rem;
  right: auto;
  margin: 0;
  padding: 0.375rem 0.8rem;
  max-width: calc(100% - 1.25rem);
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  background: #000;
  border: 1px solid #1a1a1a;
  box-shadow: 0 1px 3px color-mix(in oklab, #000 35%, transparent);
  pointer-events: none;
  box-sizing: border-box;
}

.woocommerce.molecule-php-product-catalog ul.products li.product .woocommerce-loop-product__title {
  grid-column: 1;
  grid-row: 2;
  margin: 0.65rem 0 0;
  padding: 0;
  min-width: 0;
}

.woocommerce.molecule-php-product-catalog ul.products li.product .price {
  grid-column: 2;
  grid-row: 2;
  margin: 0.65rem 0 0;
  justify-self: end;
  text-align: right;
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 0;
}

@media (min-width: 400px) {
  .woocommerce.molecule-php-product-catalog ul.products li.product .price {
    white-space: nowrap;
  }
}

.woocommerce.molecule-php-product-catalog ul.products li.product .star-rating {
  grid-column: 1 / -1;
  grid-row: 3;
  margin: 0.2rem 0 0;
}

.wc-block-components-drawer {
  background: transparent;
}

.wc-block-components-drawer {
  border-color: var(--border);
}

.wc-block-components-drawer__screen-overlay {
  background-color: color-mix(in oklab, #000 50%, transparent);
}

#coming-soon-footer-banner {
  background-color: var(--card);
  border-top-color: var(--border);
}

/* ==========================================================================
WooCommerce Inputs Styles
========================================================================== */
.wc-block-components-text-input,
.wc-blocks-components-select__container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Keep classic single-product add-to-cart buttons fully rounded, large, and full width. */
.woocommerce div.product form.cart .single_add_to_cart_button.button,
.woocommerce div.product form.cart .single_add_to_cart_button.button.alt,
button.single_add_to_cart_button.button.alt.wp-element-button {
  border-radius: 9999px !important;
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
}

/* Let the button fill the row in the variable-product add-to-cart container. */
.single-product div.product form.cart .woocommerce-variation-add-to-cart {
  display: block;
  width: 100%;
}

.single-product .molecule-available-sizes {
  display: grid;
  grid-template-columns: max-content 1fr;
  align-items: center;
  column-gap: 12px;
  margin: 0;
  padding: 0.75rem 1rem 0.75rem 0;
}

.single-product .molecule-available-sizes__label {
  margin: 0;
  color: var(--foreground);
  font-size: 0.875rem;
  line-height: 40px;
  font-weight: 600;
}

.single-product .molecule-available-sizes__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.single-product .molecule-available-sizes__option {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  background: #f9fafb;
  color: #111827;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  transition: all 0.2s ease;
}

.single-product .molecule-variable-size-selector__option {
  cursor: pointer;
}

.single-product .molecule-variable-size-selector__option:hover,
.single-product .molecule-variable-size-selector__option:focus-visible {
  border-color: #9ca3af;
  background: #f3f4f6;
  outline: none;
}

.single-product .molecule-variable-size-selector__option.is-active,
.single-product .molecule-available-sizes__option.is-active {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
}

.single-product .variations_form.molecule-size-enhanced tr.molecule-size-row {
  display: none !important;
}

.single-product .variations_form.molecule-hide-variations-table table.variations {
  display: none !important;
}

/* Remove WooCommerce variation-summary spacer under custom size selector. */
.single-product .variations_form.molecule-size-enhanced .single_variation {
  display: none !important;
}

.single-product .variations_form.molecule-size-enhanced .single_variation_wrap {
  margin-top: 1rem !important;
}

/* Use only the primary product price block; avoid duplicate variation price
   output inside the add-to-cart form. */
.single-product
  .variations_form.molecule-size-enhanced
  .single_variation
  .woocommerce-variation-price {
  display: none !important;
}

/* Keep variation labels flush-left (override global table cell padding). */
.single-product table.variations th.label {
  padding-left: 0 !important;
  padding-inline-start: 0 !important;
}

.single-product table.variations th.label label {
  margin-left: 0 !important;
}

/* Round single-product gallery media and keep zoom image clipped. */
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper,
.woocommerce div.product div.images .woocommerce-product-gallery__image,
.woocommerce div.product div.images .woocommerce-product-gallery__image > a,
.woocommerce div.product div.images .woocommerce-product-gallery__image img,
.woocommerce div.product div.images .woocommerce-product-gallery__image .zoomImg {
  border-radius: calc(var(--radius) + 4px);
}

/* Increase vertical breathing room around all <hr> separators on product pages. */
.single-product hr,
.single-product .wp-block-separator {
  margin-top: calc(var(--spacing) * 12) !important;
  margin-bottom: calc(var(--spacing) * 12) !important;
}

/* Keep product detail tables full width in content/tabs areas. */
.single-product .woocommerce-tabs table,
.single-product .wp-block-post-content table,
.single-product table.shop_attributes {
  width: 100%;
}

/* Hide duplicate default tab heading shown above custom description content. */
.single-product .woocommerce-Tabs-panel--description > h2:first-child {
  display: none;
}

/* Active product tab: black underline (default / theme grey border) */
.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .woocommerce-tabs ul.tabs li.active a:hover {
  border-bottom-color: #000;
  box-shadow: none;
}

.single-product .woocommerce-tabs ul.tabs li.active a {
  text-decoration-color: #000;
}

.single-product .woocommerce-tabs ul.tabs li.active {
  border-bottom-color: #000;
}

.woocommerce .molecule-product-disclaimer {
  width: 100%;
  margin-top: calc(var(--spacing) * 12);
  padding-top: calc(var(--spacing) * 8);
  border-top: 1px solid var(--border);
}

.woocommerce .molecule-product-disclaimer__box {
  background-color: var(--muted);
  border-radius: calc(var(--radius) + 4px);
  padding: calc(var(--spacing) * 6);
}

@media (min-width: 48rem) {
  .woocommerce .molecule-product-disclaimer__box {
    padding: calc(var(--spacing) * 8);
  }
}

.woocommerce .molecule-product-disclaimer__title {
  margin: 0 0 calc(var(--spacing) * 4);
  color: var(--foreground);
  font-size: 1.125rem;
  line-height: 1.5;
  font-weight: 600;
}

.woocommerce .molecule-product-disclaimer__content {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.625;
}

.woocommerce .molecule-product-disclaimer__content > p {
  margin: 0;
}

.woocommerce .molecule-product-disclaimer__content > p + p {
  margin-top: calc(var(--spacing) * 4);
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper,
.woocommerce div.product div.images .woocommerce-product-gallery__image,
.woocommerce div.product div.images .woocommerce-product-gallery__image > a {
  overflow: hidden;
}

.woocommerce .molecule-account-auth-link {
  margin-top: calc(var(--spacing) * 4);
  margin-bottom: 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Tighten top spacing on My Account page only. */
.woocommerce-account main.wp-block-group {
  margin-top: calc(var(--spacing) * 8) !important;
}

.woocommerce-account main.wp-block-group > .wp-block-group.alignfull {
  padding-top: calc(var(--spacing) * 8) !important;
}

/* Add Lucide-style icons to My Account navigation links. */
.woocommerce-account .woocommerce-MyAccount-navigation {
  width: 22%;
  max-width: 240px;
  overflow: hidden;
}

.woocommerce-account .woocommerce-MyAccount-content {
  width: calc(78% - 1rem);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  padding-inline-start: 0;
  list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
  margin: 0;
  padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  padding: 0.55rem 0.85rem;
  color: #6b7280;
  text-decoration: none !important;
  transition: background-color var(--default-transition-duration)
      var(--default-transition-timing-function),
    color var(--default-transition-duration) var(--default-transition-timing-function);
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation a:focus-visible {
  background-color: #f3f4f6;
  color: #111827;
  text-decoration: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:visited,
.woocommerce-account .woocommerce-MyAccount-navigation a:active {
  text-decoration: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation a::before {
  content: "";
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 1rem 1rem;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 1rem 1rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active > a {
  color: #111827;
  background-color: #e5e7eb;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--dashboard a::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9.5V21h14V9.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9.5V21h14V9.5'/%3E%3C/svg%3E");
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--orders a::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16.5 7.5h.01'/%3E%3Cpath d='M21 11.5 12.5 20 4 11.5V4h7.5L21 11.5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16.5 7.5h.01'/%3E%3Cpath d='M21 11.5 12.5 20 4 11.5V4h7.5L21 11.5z'/%3E%3C/svg%3E");
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--downloads a::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E");
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-address a::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 11-8 11s-8-5-8-11a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 11-8 11s-8-5-8-11a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--payment-methods a::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E");
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-account a::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--my-subscriptions a::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 2v6h6'/%3E%3Cpath d='M21 12A9 9 0 0 0 6 5.3L3 8'/%3E%3Cpath d='M21 22v-6h-6'/%3E%3Cpath d='M3 12a9 9 0 0 0 15 6.7l3-2.7'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 2v6h6'/%3E%3Cpath d='M21 12A9 9 0 0 0 6 5.3L3 8'/%3E%3Cpath d='M21 22v-6h-6'/%3E%3Cpath d='M3 12a9 9 0 0 0 15 6.7l3-2.7'/%3E%3C/svg%3E");
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpath d='m16 17 5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpath d='m16 17 5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3C/svg%3E");
}

/* Mobile account nav: use compact dropdown instead of link list. */
.woocommerce-account .molecule-account-nav-mobile {
  display: none;
}

.woocommerce-account .molecule-account-nav-mobile__select {
  width: 100%;
  min-height: 2.5rem;
  border: 1px solid var(--input);
  border-radius: calc(var(--radius) - 2px);
  background-color: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
  line-height: 1.25;
  padding: 0.5rem 0.75rem;
}

@media (max-width: 767px) {
  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content {
    width: 100%;
    max-width: none;
  }

  .woocommerce-account .molecule-account-nav-mobile {
    display: block;
    margin-bottom: 0.75rem;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation > ul {
    display: none;
  }
}

/* Show only one auth column at a time on My Account. */
.woocommerce #customer_login .u-column1,
.woocommerce #customer_login .u-column2 {
  width: 100%;
  float: none;
}

.woocommerce-account .woocommerce form.woocommerce-form-login,
.woocommerce-account .woocommerce form.woocommerce-form-register {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

/*
 * Login/register forms: block layout + full-width rows (My Account often has no .woocommerce wrapper).
 * Flex column + align-items:center on an ancestor shrinks rows without a width:100% child — looks like “padding”.
 */
.woocommerce-account .woocommerce form.woocommerce-form-login.login,
.woocommerce-account .woocommerce form.woocommerce-form-register.register,
body.woocommerce-account form.woocommerce-form-login.login,
body.woocommerce-account form.woocommerce-form-register.register {
  display: block !important;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  align-items: stretch;
}

.woocommerce-account .woocommerce form.woocommerce-form-login.login > p,
.woocommerce-account .woocommerce form.woocommerce-form-register.register > p,
.woocommerce-account .woocommerce form.woocommerce-form-login.login > div.molecule-login-options-row,
body.woocommerce-account form.woocommerce-form-login.login > p,
body.woocommerce-account form.woocommerce-form-register.register > p,
body.woocommerce-account form.woocommerce-form-login.login > div.molecule-login-options-row {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* Register column: flush heading + form (Woo/core margins add phantom space). */
.woocommerce-account #customer_login .u-column1 > h2,
.woocommerce-account #customer_login .u-column2 > h2 {
  margin-top: 0;
  padding-top: 0;
}

.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
  margin-bottom: 0;
  padding-bottom: 0;
}

.woocommerce-account .woocommerce-form-login > p.form-row:last-child,
.woocommerce-account .woocommerce-form-register > p.form-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Login: remember me (left) + lost password (right), one row — single vertical centerline */
body.woocommerce-account form.woocommerce-form-login.login div.molecule-login-options-row,
.woocommerce-account .woocommerce-form-login div.molecule-login-options-row,
.woocommerce-account .woocommerce-form-login .molecule-login-options-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  align-self: stretch;
  gap: 1rem;
  width: 100% !important;
  min-width: 100%;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  padding-block: 0 !important;
  padding-inline: 0 !important;
  margin-top: 0;
  /* Slightly more than `.woocommerce form .form-row { margin-bottom: 1em }` for breathing room before submit. */
  margin-bottom: 1.5em;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-inline: 0 !important;
  text-align: left;
  text-indent: 0;
  font-size: 0.875rem;
  line-height: 1.25;
}

/* Block themes / WP layout can add horizontal inset on `p`; keep this row flush like other `form-row-wide` blocks. */
.woocommerce-account .woocommerce-form-login .molecule-login-options-row > span {
  padding-inline: 0 !important;
  margin-inline: 0 !important;
}

.woocommerce-account .woocommerce-form-login .molecule-login-remember-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  align-self: center;
  text-align: left;
  margin: 0;
  padding: 0;
}

.woocommerce-account .woocommerce-form-login .molecule-login-lost-password {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  align-self: center;
  text-align: right;
  white-space: nowrap;
}

.woocommerce-account .woocommerce-form-login .molecule-login-lost-password a {
  font-size: inherit;
  line-height: inherit;
  color: var(--muted-foreground);
  text-decoration: underline;
  text-underline-offset: 0.125em;
  text-decoration-thickness: 1px;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.woocommerce-account .woocommerce-form-login .molecule-login-lost-password a:hover,
.woocommerce-account .woocommerce-form-login .molecule-login-lost-password a:focus-visible {
  color: var(--foreground);
}

/* Remember-me label: must beat Woo `.woocommerce form .form-row label { display: block }` (higher specificity). */
.woocommerce-account
  .woocommerce-form-login
  .molecule-login-options-row
  label.woocommerce-form-login__rememberme {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-size: inherit;
  line-height: inherit;
  font-weight: 400;
}

/* Center with label text; keep theme checkbox sizing (avoid display:flex on input — can break inline layout). */
.woocommerce-account
  .woocommerce-form-login
  .molecule-login-options-row
  label.woocommerce-form-login__rememberme
  input[type="checkbox"] {
  margin: 0;
  flex-shrink: 0;
}

.woocommerce-account
  .woocommerce-form-login
  .molecule-login-options-row
  label.woocommerce-form-login__rememberme
  > span {
  display: inline-flex;
  align-items: center;
  line-height: inherit;
  margin: 0;
  padding: 0;
}

.woocommerce-account .woocommerce-form-login .molecule-login-submit-row {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* Flush login form bottom edge (Woo/core can add form or button spacing). */
.woocommerce-account .woocommerce-form.woocommerce-form-login.login {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.woocommerce-account .woocommerce-form-login.login > :last-child {
  margin-bottom: 0 !important;
}

/* Flush register form bottom edge (Woo/core can add form or button spacing). */
.woocommerce-account .woocommerce-form.woocommerce-form-register.register {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.woocommerce-account .woocommerce-form-register.register > :last-child {
  margin-bottom: 0 !important;
}

/* Larger primary actions on auth forms */
.woocommerce-account .woocommerce-form-login__submit,
.woocommerce-account .woocommerce-form-register__submit {
  width: 100%;
  min-height: 2.875rem;
  padding: 0.85rem 1.35rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0;
}

.woocommerce-account .woocommerce-privacy-policy-text {
  margin: 0.75rem 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted-foreground);
}

.woocommerce-account .woocommerce-privacy-policy-text p {
  margin: 0;
}

.woocommerce-account .woocommerce-privacy-policy-text a {
  color: var(--muted-foreground);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.woocommerce-account .woocommerce-privacy-policy-text a:hover,
.woocommerce-account .woocommerce-privacy-policy-text a:focus-visible {
  color: var(--foreground);
}

body.molecule-auth-mode-login #customer_login .u-column2 {
  display: none !important;
}

body.molecule-auth-mode-register #customer_login .u-column1 {
  display: none !important;
}

/* Guest My Account: footer template part is suppressed; center a narrow “card” for forms. */
body.molecule-guest-auth-layout.woocommerce-account .wp-site-blocks {
  /* Include nav offset padding inside min-height (content-box would add padding on top of 100vh). */
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Admin bar shifts the visual viewport; avoid ~one extra “empty” scroll gap. */
body.admin-bar.molecule-guest-auth-layout.woocommerce-account .wp-site-blocks {
  min-height: calc(100vh - 32px);
  min-height: calc(100dvh - 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar.molecule-guest-auth-layout.woocommerce-account .wp-site-blocks {
    min-height: calc(100vh - 46px);
    min-height: calc(100dvh - 46px);
  }
}

body.molecule-guest-auth-layout.woocommerce-account main.wp-block-group {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 0 !important;
  min-height: 0;
  width: 100%;
}

body.molecule-guest-auth-layout.woocommerce-account
  main.wp-block-group
  > .wp-block-group.alignfull {
  width: 100%;
  max-width: none;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 0;
  padding: clamp(1rem, 4vw, 1.5rem) !important;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  box-sizing: border-box;
}

/* Rounded shell for login/register columns (one visible at a time via auth mode). */
body.molecule-guest-auth-layout.woocommerce-account #customer_login {
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2rem);
  background: var(--card);
  color: var(--card-foreground);
  box-sizing: border-box;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* Lost password: match login/register card */
body.molecule-guest-auth-layout.woocommerce-account
  .woocommerce
  form.woocommerce-ResetPassword.lost_reset_password {
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  margin-bottom: 0;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2rem);
  background: var(--card);
  color: var(--card-foreground);
  box-sizing: border-box;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  text-align: left;
}

body.molecule-guest-auth-layout.woocommerce-account
  form.woocommerce-ResetPassword.lost_reset_password
  > p:first-of-type {
  margin-top: 0;
}

body.molecule-guest-auth-layout.woocommerce-account
  form.woocommerce-ResetPassword.lost_reset_password
  > p:last-of-type {
  margin-bottom: 0;
}

body.molecule-guest-auth-layout.woocommerce-account
  form.woocommerce-ResetPassword.lost_reset_password
  .woocommerce-Button.button {
  width: 100%;
  min-height: 2.875rem;
  padding: 0.85rem 1.35rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
}

/* Ensure the primary gallery image fills the media column width. */
.woocommerce div.product div.images .woocommerce-product-gallery__image > a {
  display: block;
  width: 100%;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image img.wp-post-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

/*
 * Block single-product pages can inherit a constrained gallery width.
 * Force the gallery container and primary image to fill the left column.
 */
.single-product
  .wp-block-woocommerce-product-image-gallery
{
  width: 100% !important;
  max-width: none !important;
}

.single-product
  .wp-block-woocommerce-product-image-gallery
  .woocommerce-product-gallery {
  width: 100% !important;
  max-width: none !important;
}

.single-product
  .wp-block-woocommerce-product-image-gallery
  .woocommerce-product-gallery__wrapper,
.single-product
  .wp-block-woocommerce-product-image-gallery
  .woocommerce-product-gallery__wrapper
  .woocommerce-product-gallery__image:first-child,
.single-product
  .wp-block-woocommerce-product-image-gallery
  .woocommerce-product-gallery__wrapper
  .woocommerce-product-gallery__image:first-child
  > a,
.single-product
  .wp-block-woocommerce-product-image-gallery
  .woocommerce-product-gallery__wrapper
  .woocommerce-product-gallery__image:first-child
  img.wp-post-image {
  width: 100% !important;
  max-width: none !important;
}

.wc-block-components-form
  .wc-block-components-text-input
  input:-webkit-autofill
  + label,
.wc-block-components-form .wc-block-components-text-input.is-active label,
.wc-block-components-text-input input:-webkit-autofill + label,
.wc-block-components-text-input.is-active label {
  transform: none;
}

.wc-block-components-form .wc-block-components-text-input label,
.wc-block-components-text-input label,
.wc-blocks-components-select .wc-blocks-components-select__label {
  position: relative;
  top: unset;
  left: unset;
  transform: none;
  max-width: none;
  order: -1;
  font-size: 0.875rem;
  color: var(--foreground);
  line-height: calc(1.25 / 0.875);
  margin: 0;
}

.wc-block-components-address-form__address_2-toggle {
  font-size: 0.875rem;
}

.wc-blocks-components-select .wc-blocks-components-select__container {
  height: unset;
  background: unset;
  border-radius: unset;
}

.wc-blocks-components-select .wc-blocks-components-select__container svg {
  display: none;
}

.wc-block-components-checkbox__mark {
  display: none;
}

/* ==========================================================================
WooCommerce Cart Items Block
========================================================================== */

.wc-block-mini-cart__badge {
  background-color: var(--foreground);
  color: var(--background);
}

.wc-block-mini-cart__footer {
  border-color: var(--border);
}

.wc-block-components-drawer:after,
.wc-block-mini-cart__footer:after {
  border-color: var(--border);
  opacity: 1;
}

.wp-block-woocommerce-mini-cart-title-block.wc-block-mini-cart__title {
  font-size: 1rem;
}

.wc-block-components-quantity-selector {
  border: none;
}

.wc-block-components-quantity-selector:after {
  display: none;
}

.wc-block-components-quantity-selector
  .wc-block-components-quantity-selector__button {
  border: 1px solid var(--input);
  border-radius: calc(var(--radius) - 2px);
  opacity: 1;
  background-color: var(--background);
  box-shadow: 0 1px 2px 0 var(--tw-shadow-color, #0000000d);
  width: 30px;
  height: 30px;
}

.dark
  .wc-block-components-quantity-selector
  .wc-block-components-quantity-selector__button {
  background-color: color-mix(in oklab, var(--input) 30%, transparent);
}

.wc-block-components-quantity-selector
  input.wc-block-components-quantity-selector__input {
  height: unset;
  background-color: transparent;
}

.wc-block-components-quantity-selector
  input.wc-block-components-quantity-selector__input:focus {
  outline: none;
  box-shadow: none;
}

.dark
  .wc-block-components-quantity-selector
  input.wc-block-components-quantity-selector__input {
  background-color: transparent;
}

.wc-block-cart-items__row {
  background-color: var(--card);
  color: var(--card-foreground);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a),
    0 1px 2px -1px var(--tw-shadow-color, #0000001a);
  padding: 0 !important;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.wc-block-cart-items__row:last-child {
  margin-bottom: 0;
}

.wc-block-cart-items__row .wc-block-cart-item__product,
.wc-block-cart-items__row .wc-block-cart-item__total {
  padding: 1rem !important;
}

.wc-block-cart-items__row .wc-block-cart-item__image {
  padding: 1rem !important;
}

.wc-block-cart-items__row .wc-block-cart-item__image a {
  display: block;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
}

.wc-block-cart-items__row .wc-block-cart-item__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 2px);
}
.wc-block-cart-items__row .wc-block-components-product-metadata {
  color: var(--muted-foreground);
}
.wc-block-cart-items__row .wc-block-components-product-price__regular {
  font-weight: 400;
  color: var(--muted-foreground);
}

.wc-block-cart-items__header {
  display: none;
}

.is-large table.wc-block-cart-items .wc-block-cart-items__row {
  display: grid;
  grid-template-columns: 112px 132px;
}

.is-large
  table.wc-block-cart-items
  .wc-block-cart-items__row
  .wc-block-cart-item__image {
  grid-column-start: 1;
  grid-row-start: 1;
}

.is-large
  table.wc-block-cart-items
  .wc-block-cart-items__row
  .wc-block-cart-item__product {
  grid-column-end: 4;
  grid-column-start: 2;
  grid-row-start: 1;
  justify-self: stretch;
}

.is-large
  table.wc-block-cart-items
  .wc-block-cart-items__row
  .wc-block-cart-item__total {
  grid-row-start: 1;
}

.wc-block-cart__main .wc-block-cart-items {
  border: 0;
}

.wc-block-cart table.wc-block-cart-items,
.wc-block-cart table.wc-block-cart-items td,
.wc-block-cart table.wc-block-cart-items th {
  margin-bottom: 0;
}

.wc-block-cart__main .wc-block-cart-items td {
  border: 0;
}

@container (max-width: 699px) {
  .wc-block-cart .wc-block-components-sidebar .wc-block-cart__totals-title {
    display: block;
    margin: 0;
  }
}

.wc-block-components-order-summary
  .wc-block-components-order-summary-item__quantity {
  box-shadow: none;
  border: 1px solid var(--border);
  padding: 0;
  font-size: 0.75rem;
}

.wc-block-components-order-summary
  .wc-block-components-order-summary-item__image
  > img {
  border-radius: calc(var(--radius) - 2px);
}

/* ==========================================================================
WooCommerce Cart/Checkout Block Styles
========================================================================== */

.wc-block-components-sidebar-layout.wc-block-cart,
.wc-block-components-sidebar-layout.wc-block-checkout {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--spacing) * 8);
}

@media (min-width: 64rem) {
  .wc-block-components-sidebar-layout.wc-block-cart,
  .wc-block-components-sidebar-layout.wc-block-checkout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wc-block-components-sidebar-layout.wc-block-cart .wc-block-components-main,
  .wc-block-components-sidebar-layout.wc-block-checkout
    .wc-block-components-main {
    grid-column: span 2 / span 2;
  }
}

.wc-block-components-sidebar-layout.wc-block-cart > *,
.wc-block-components-sidebar-layout.wc-block-checkout > * {
  width: 100%;
}

.wc-block-components-sidebar-layout .wc-block-components-main {
  padding: 0;
}

.wc-block-cart .wc-block-components-sidebar,
.wp-block-woocommerce-checkout-order-summary-block {
  height: fit-content;
  background-color: var(--card);
  box-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a),
    0 1px 2px -1px var(--tw-shadow-color, #0000001a);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  padding: calc(var(--spacing) * 6);
}

/* ==========================================================================
WooCommerce Coupon Form Styles
========================================================================== */

.wc-block-components-totals-coupon__form {
  align-items: flex-end;
}

.wc-block-components-totals-coupon__form
  .wc-block-components-totals-coupon__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  height: calc(var(--spacing) * 9);
  padding-left: calc(var(--spacing) * 4);
  padding-right: calc(var(--spacing) * 4);
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--input);
  background-color: var(--background);
  color: var(--foreground);
  transition-property: color, background-color, border-color;
  transition-timing-function: var(--default-transition-timing-function);
  transition-duration: var(--default-transition-duration);
}

.wc-block-components-totals-coupon__form
  .wc-block-components-totals-coupon__button:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.wc-block-components-totals-coupon__form
  .wc-block-components-totals-coupon__button:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.wc-block-components-totals-coupon__form
  .wc-block-components-totals-coupon__button:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.dark
  .wc-block-components-totals-coupon__form
  .wc-block-components-totals-coupon__button {
  background-color: color-mix(in oklab, var(--input) 30%, transparent);
  border-color: var(--input);
}

.dark
  .wc-block-components-totals-coupon__form
  .wc-block-components-totals-coupon__button:hover {
  background-color: var(--accent);
}

.wp-block-woocommerce-checkout-order-summary-coupon-form-block {
  margin-block: 1rem 1.25rem;
  font-size: 1rem;
}

.wp-block-woocommerce-checkout-order-summary-coupon-form-block
  .wc-block-components-totals-coupon {
  padding: 1rem 1.125rem !important;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background: color-mix(in oklab, var(--muted) 30%, var(--background));
}

.wp-block-woocommerce-checkout-order-summary-coupon-form-block.molecule-checkout-coupon--pinned
  .wc-block-components-totals-coupon::before,
.wp-block-woocommerce-checkout-order-summary-coupon-form-block.molecule-checkout-coupon--custom
  .molecule-checkout-coupon__always-visible::before {
  content: "Coupon or Affiliate Code";
  display: block;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.wp-block-woocommerce-checkout-order-summary-coupon-form-block.molecule-checkout-coupon--custom
  > .wc-block-components-totals-coupon:not(.molecule-checkout-coupon__always-visible) {
  display: none !important;
}

.wp-block-woocommerce-checkout-order-summary-coupon-form-block.molecule-checkout-coupon--pinned
  .wc-block-components-panel__content,
.wp-block-woocommerce-checkout-order-summary-coupon-form-block.molecule-checkout-coupon--custom
  .molecule-checkout-coupon__always-visible .wc-block-components-panel__content {
  display: block !important;
  padding-bottom: 0.25rem;
}

.wp-block-woocommerce-checkout-order-summary-coupon-form-block
  .wc-block-components-totals-coupon__form {
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.wp-block-woocommerce-checkout-order-summary-coupon-form-block
  .wc-block-components-totals-coupon__input,
.wp-block-woocommerce-checkout-order-summary-coupon-form-block
  .wc-block-components-text-input.wc-block-components-totals-coupon__input {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  line-height: normal;
  margin-top: 0;
  white-space: normal;
}

.wp-block-woocommerce-checkout-order-summary-coupon-form-block
  .wc-block-components-text-input .wc-block-components-text-input__wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.wp-block-woocommerce-checkout-order-summary-coupon-form-block
  .wc-block-components-text-input label,
.wp-block-woocommerce-checkout-order-summary-coupon-form-block
  .wc-block-components-text-input.is-active label,
.wp-block-woocommerce-checkout-order-summary-coupon-form-block
  .wc-block-components-text-input input:-webkit-autofill + label {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  order: -1;
  max-width: none;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  transition: none;
}

.wp-block-woocommerce-checkout-order-summary-coupon-form-block
  .wc-block-components-text-input input {
  min-height: 3rem;
  font-size: 1rem;
  padding: 0.75rem 1rem;
}

.wp-block-woocommerce-checkout-order-summary-coupon-form-block
  .wc-block-components-totals-coupon__form
  .wc-block-components-totals-coupon__button {
  width: 100%;
  min-height: 3rem;
  font-size: 1rem;
  font-weight: 600;
  background-color: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}

.wp-block-woocommerce-checkout-order-summary-coupon-form-block
  .wc-block-components-totals-coupon__form
  .wc-block-components-totals-coupon__button:hover {
  background-color: color-mix(in oklab, var(--foreground) 88%, var(--background));
  color: var(--background);
  border-color: color-mix(in oklab, var(--foreground) 88%, var(--background));
}

/* ==========================================================================
Order Summary Block Styles
========================================================================== */

.wc-block-cart .wc-block-cart__totals-title {
  text-transform: none;
  padding: 0;
  font-size: 1rem;
}

.wc-block-components-totals-wrapper {
  border-color: var(--border);
}

.wc-block-cart .wp-block-woocommerce-cart-order-summary-block {
  border-color: var(--border);
}

.wp-block-woocommerce-cart-order-summary-coupon-form-block {
  font-size: 0.875rem;
}

.wp-block-woocommerce-cart-order-summary-coupon-form-block
  .wc-block-components-panel__button[aria-expanded="false"] {
  margin-bottom: 0;
}

.wc-block-components-totals-coupon .wc-block-components-panel__button {
  margin-bottom: 0.5rem;
}

.wc-block-cart__submit {
  margin-bottom: 0;
}

.wc-block-components-radio-control--highlight-checked:after {
  border-color: var(--border);
}

.wc-block-components-radio-control--highlight-checked
  .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked
  label.wc-block-components-radio-control__option--checked-option-highlighted {
  box-shadow: inset 0 0 0 1px currentColor;
  z-index: 1;
}

.wc-block-components-radio-control-accordion-content {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.wc-block-checkout__actions
  .wc-block-checkout__actions_row
  .wc-block-components-checkout-place-order-button {
  padding: 5px 1rem;
}

.wc-block-checkout__actions .wc-block-checkout__actions_row {
  display: flex;
  flex-direction: column-reverse;
  align-items: stretch;
  gap: 0.75rem;
}

.wc-block-checkout__actions
  .wc-block-checkout__actions_row
  .wc-block-components-checkout-place-order-button {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.875rem 1.25rem;
  font-size: var(--wp--preset--font-size--base);
  font-weight: 600;
}

.wc-block-checkout__actions
  .wc-block-checkout__actions_row
  .wc-block-components-checkout-return-to-cart-button {
  align-self: flex-start;
}

.wc-block-checkout__terms.wc-block-checkout__terms--with-separator {
  border-color: var(--border);
}

/* ==========================================================================
WooCommerce Checkout Block Styles
========================================================================== */

.wp-block-woocommerce-checkout-order-summary-block
  .wc-block-components-checkout-order-summary__title {
  margin-top: 0;
  padding: 0;
  border: none;
}

.wp-block-woocommerce-checkout-order-summary-block
  .wc-block-components-checkout-order-summary__title
  .wc-block-components-checkout-order-summary__title-text {
  margin: 0;
}

.wc-block-components-order-summary,
.wc-block-components-sidebar .slot-wrapper .wc-block-components-panel,
.wc-block-components-sidebar .wc-block-components-panel,
.wc-block-components-sidebar .wc-block-components-totals-coupon,
.wc-block-components-sidebar .wc-block-components-totals-item {
  padding: 0;
}

@media screen and (max-width: 699px) {
  .wp-block-woocommerce-checkout-order-summary-block
    .wc-block-components-checkout-order-summary__title
    .wc-block-components-checkout-order-summary__title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.wp-block-woocommerce-checkout-order-summary-block
  .wc-block-components-checkout-order-summary__content.is-open {
  border: none;
}

.wc-block-components-checkout-order-summary__content
  .wc-block-components-totals-wrapper:last-child {
  padding-bottom: 0;
}

.wp-block-woocommerce-checkout-order-summary-block
  .checkout-order-summary-block-fill {
  border: none;
}

.checkout-order-summary-block-fill-wrapper {
  margin-bottom: calc(var(--spacing) * 6);
}

.wp-block-woocommerce-checkout-order-summary-block.checkout-order-summary-block-fill-wrapper
  .wc-block-components-order-summary,
.wp-block-woocommerce-checkout-order-summary-block
  .checkout-order-summary-block-fill
  .wc-block-components-totals-coupon,
.wp-block-woocommerce-checkout-order-summary-block
  .checkout-order-summary-block-fill
  .wc-block-components-totals-item {
  padding: 0;
}

.wp-block-woocommerce-checkout-order-summary-totals-block {
  border-color: var(--border);
}

@container (max-width: 699px) {
  .wp-block-woocommerce-checkout-order-summary-block.checkout-order-summary-block-fill-wrapper {
    padding-bottom: calc(var(--spacing) * 6);
  }
}

.checkout-order-summary-block-fill
  .wc-block-components-totals-wrapper:last-child {
  padding-bottom: 0;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item {
  border-bottom: 1px solid var(--border);
}

.wc-block-components-order-summary .wc-block-components-order-summary-item:last-child {
  border-bottom: none;
}

/* ==========================================================================
   Stock badges: pill on product pages; overlay on catalog cards
   ========================================================================== */

/* PDP: default WooCommerce / blocks output "In stock" — redundant when product is purchasable */
.single-product .woocommerce div.product p.stock.in-stock,
.single-product p.stock.in-stock,
.single-product .wc-block-components-product-stock-indicator--in-stock,
.woocommerce div.product .single_variation .woocommerce-variation-availability p.stock.in-stock,
.wc-block-add-to-cart-form p.stock.in-stock,
.wp-block-woocommerce-add-to-cart-form p.stock.in-stock,
.wp-block-add-to-cart-form.wc-block-add-to-cart-form p.stock.in-stock {
  display: none !important;
}

.single-product .woocommerce div.product p.stock.out-of-stock,
.single-product p.stock.out-of-stock,
.single-product .wc-block-components-product-stock-indicator--out-of-stock,
.woocommerce div.product .single_variation .woocommerce-variation-availability p.stock.out-of-stock,
/* Block add-to-cart form (single product template) */
.wc-block-add-to-cart-form p.stock.out-of-stock,
.wp-block-woocommerce-add-to-cart-form p.stock.out-of-stock,
.wp-block-add-to-cart-form.wc-block-add-to-cart-form p.stock.out-of-stock {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  background: #000;
  border: 1px solid #1a1a1a;
  box-sizing: border-box;
}

/* Catalog / shop grid: floating pill bottom-left on product image tile */
.wc-block-product .wc-block-components-product-image.wc-block-grid__product-image,
.wc-block-components-product-image.wc-block-grid__product-image {
  position: relative;
  isolation: isolate;
}

.wc-block-components-product-image.wc-block-grid__product-image > a {
  display: block;
  position: relative;
  line-height: 0;
}

.wc-block-components-product-image.wc-block-grid__product-image > a > img {
  display: block;
  width: 100%;
  height: auto;
}

.wc-block-components-product-image.wc-block-grid__product-image
  .molecule-product-card-stock-badge--out-of-stock {
  position: absolute;
  z-index: 3;
  bottom: 0.625rem;
  left: 0.625rem;
  right: auto;
  margin: 0;
  padding: 0.375rem 0.8rem;
  max-width: calc(100% - 1.25rem);
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  background: #000;
  border: 1px solid #1a1a1a;
  box-shadow: 0 1px 3px color-mix(in oklab, #000 35%, transparent);
  pointer-events: none;
  box-sizing: border-box;
}

/* Shop catalog: "In stock only" left of sort dropdown (inside results/sort flex row). */
.molecule-shop-catalog-sort-with-stock {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.75rem 1rem;
  flex: 0 0 auto;
}

.molecule-shop-catalog-sort-with-stock .molecule-shop-in-stock-toggle {
  margin-bottom: 0;
  flex: 0 0 auto;
}

/* Align tall .orderby control with the in-stock control in the same row */
.molecule-shop-catalog-sort-with-stock .woocommerce-ordering {
  display: flex;
  align-items: center;
  margin: 0;
}

.molecule-shop-catalog-sort-with-stock .wp-block-woocommerce-catalog-sorting,
.molecule-shop-catalog-sort-with-stock .wc-block-catalog-sorting {
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}

.molecule-shop-in-stock-toggle {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.molecule-shop-in-stock-toggle.alignwide {
  width: 100%;
  max-width: var(--wp--style--global--wide-size, 1200px);
  margin-left: auto;
  margin-right: auto;
}

.molecule-availability-facet {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.625rem 0.75rem;
}

.molecule-availability-facet__label {
  margin: 0;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1;
  /* Match track height; flex centers the glyph box, not typographic optical center */
  min-height: 1.75rem;
  display: inline-flex;
  align-items: center;
  color: var(--foreground, #0a0a0a);
  cursor: pointer;
  /* Fine-tune vertical alignment next to the pill track */
  transform: translateY(5px);
}

input.switch.molecule-in-stock-only-switch {
  appearance: none;
  position: relative;
  width: 3rem;
  height: 1.75rem;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  border-radius: 9999px;
  box-sizing: border-box;
  display: block;
  background: var(--muted, #e5e5e5);
  border: 1px solid var(--border, #d4d4d4);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

input.switch.molecule-in-stock-only-switch::after {
  content: '';
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #fff;
  top: 50%;
  left: 0.25rem;
  transform: translateY(-50%);
  box-shadow: 0 1px 3px color-mix(in oklab, #000 20%, transparent);
  transition: transform 0.2s ease;
}

input.switch.molecule-in-stock-only-switch:checked {
  background: #000;
  border-color: #000;
}

input.switch.molecule-in-stock-only-switch:checked::after {
  /* Nudge left ~1px so right inset matches top/bottom inset inside the track */
  transform: translate(calc(1.25rem - 1px), -50%);
}

input.switch.molecule-in-stock-only-switch:focus-visible {
  outline: 2px solid var(--ring, #737373);
  outline-offset: 2px;
}

/* -------------------------------------------------------------------------- */
/* Bundle Pricing (Molecule Bundle Pricing plugin)                            */
/* Markup/class contract owned by the plugin; styling owned here via tokens.  */
/* -------------------------------------------------------------------------- */

.single-product .molecule-bundle-tiers {
  width: 100%;
  /* Claim the full row when rendered inside a flex button container (variable products). */
  flex: 1 0 100%;
  box-sizing: border-box;
  margin: 0 0 1.25rem;
}

.single-product .molecule-bundle-tiers__list {
  display: grid;
  width: 100%;
  box-sizing: border-box;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.single-product .molecule-bundle-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  padding: 20px 14px 18px;
  border: 1px solid var(--border, #e5e5e5);
  border-radius: var(--radius, 0.625rem);
  background: var(--card, #fff);
  color: var(--foreground, #111827);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.single-product .molecule-bundle-tier:hover {
  border-color: var(--muted-foreground, #9ca3af);
}

.single-product .molecule-bundle-tier:focus-visible {
  outline: none;
  border-color: var(--foreground, #111827);
  box-shadow: 0 0 0 2px var(--ring, var(--foreground, #111827));
}

.single-product .molecule-bundle-tier--active {
  border-color: var(--foreground, #111827);
  box-shadow: inset 0 0 0 1px var(--foreground, #111827);
}

/* Radio indicator dot, mirroring the mockups. */
.single-product .molecule-bundle-tier__indicator {
  width: 20px;
  height: 20px;
  border: 2px solid var(--muted-foreground, #9ca3af);
  border-radius: 9999px;
  background: transparent;
  transition: border-color 0.18s ease;
}

.single-product .molecule-bundle-tier--active .molecule-bundle-tier__indicator {
  border-color: var(--foreground, #111827);
  background:
    radial-gradient(
      circle,
      var(--foreground, #111827) 0 38%,
      transparent 42%
    );
}

.single-product .molecule-bundle-tier__badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 10px;
  border-radius: 9999px;
  background: #000;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.single-product .molecule-bundle-tier__label {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
}

.single-product .molecule-bundle-tier__sublabel {
  color: var(--muted-foreground, #6b7280);
  font-size: 0.875rem;
}

.single-product .molecule-bundle-tier__price {
  margin-top: 6px;
  font-size: 1.125rem;
  font-weight: 700;
}

.single-product .molecule-bundle-tier__price-was {
  color: var(--muted-foreground, #6b7280);
  font-size: 0.9375rem;
  text-decoration: line-through;
}

.single-product .molecule-bundle-tier__price-was:empty {
  display: none;
}

.single-product .molecule-bundle-tier__stepper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.single-product .molecule-bundle-tier__stepper[hidden] {
  display: none;
}

.single-product .molecule-bundle-tier__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border, #d1d5db);
  border-radius: 9999px;
  background: var(--card, #fff);
  color: var(--foreground, #111827);
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.single-product .molecule-bundle-tier__step:hover,
.single-product .molecule-bundle-tier__step:focus-visible {
  border-color: var(--foreground, #111827);
  outline: none;
}

.single-product .molecule-bundle-tier__qty {
  min-width: 1.5em;
  font-weight: 600;
  text-align: center;
}

/* When the cards are present, the native quantity field is driven by them. */
.single-product form.cart.mbp-has-bundle-tiers .quantity {
  display: none !important;
}

/* Variable products before a variation is chosen: dim prices until known. */
.single-product .molecule-bundle-tiers--pending .molecule-bundle-tier__price,
.single-product .molecule-bundle-tiers--pending .molecule-bundle-tier__price-was {
  opacity: 0.35;
}

@media (max-width: 480px) {
  .single-product .molecule-bundle-tiers__list {
    grid-template-columns: 1fr;
  }
}
