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

.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. */
.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;
}

.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 {
  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;
}

.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;
}

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

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

/* 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);
}

/* ==========================================================================
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;
}
