

/* Cart and checkout Woo Blocks visual cleanup - 2026-09-02. */
body.woocommerce-cart,
body.woocommerce-checkout {
  background: var(--dasty-bg);
}

body.woocommerce-cart .entry-hero .entry-header,
body.woocommerce-checkout .entry-hero .entry-header {
  padding: 22px 24px;
  border-color: var(--dasty-border);
  border-radius: 8px;
  background: var(--dasty-surface);
  box-shadow: none;
}

body.woocommerce-cart .entry-hero .entry-title,
body.woocommerce-checkout .entry-hero .entry-title {
  color: var(--dasty-text);
  font-size: clamp(1.85rem, 2.8vw, 2.6rem);
}

body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-checkout .wc-block-checkout {
  color: var(--dasty-text);
  font-family: Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.woocommerce-cart .wp-block-woocommerce-cart a:not(.wc-block-cart__submit-button):not(.dasty-cart-empty__button),
body.woocommerce-checkout .wp-block-woocommerce-checkout a {
  color: var(--dasty-text);
  text-decoration: none;
}

body.woocommerce-cart .wp-block-woocommerce-cart a:not(.wc-block-cart__submit-button):not(.dasty-cart-empty__button):hover,
body.woocommerce-cart .wp-block-woocommerce-cart a:not(.wc-block-cart__submit-button):not(.dasty-cart-empty__button):focus-visible,
body.woocommerce-checkout .wp-block-woocommerce-checkout a:hover,
body.woocommerce-checkout .wp-block-woocommerce-checkout a:focus-visible {
  color: var(--dasty-primary-hover);
}

body.woocommerce-cart:has(.dasty-cart-empty) .entry-hero {
  display: none;
}

body.woocommerce-cart .dasty-cart-empty-block {
  max-width: 640px;
  margin: clamp(12px, 3vw, 28px) auto clamp(28px, 4vw, 44px);
}

body.woocommerce-cart .dasty-cart-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--dasty-border);
  border-radius: 8px;
  background: var(--dasty-surface);
  text-align: center;
}

body.woocommerce-cart .dasty-cart-empty__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--dasty-border);
  border-radius: 8px;
  background: var(--dasty-surface-warm);
  color: var(--dasty-primary-hover);
}

body.woocommerce-cart .dasty-cart-empty__icon svg {
  width: 22px;
  height: 22px;
}

body.woocommerce-cart .dasty-cart-empty__title {
  margin: 2px 0 0;
  color: var(--dasty-text);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
}

body.woocommerce-cart .dasty-cart-empty__text {
  max-width: 360px;
  margin: 0;
  color: var(--dasty-text-muted);
  font-size: 1rem;
  line-height: 1.55;
}

body.woocommerce-cart .dasty-cart-empty__button,
body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-cart .wc-block-components-totals-coupon__button,
body.woocommerce-checkout .wc-block-components-totals-coupon__button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 48px !important;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--dasty-primary) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: center;
  text-decoration: none !important;
  transform: none !important;
}

body.woocommerce-cart .dasty-cart-empty__button:hover,
body.woocommerce-cart .dasty-cart-empty__button:focus-visible,
body.woocommerce-cart .wc-block-cart__submit-button:hover,
body.woocommerce-cart .wc-block-cart__submit-button:focus-visible,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:focus-visible,
body.woocommerce-cart .wc-block-components-totals-coupon__button:hover,
body.woocommerce-cart .wc-block-components-totals-coupon__button:focus-visible,
body.woocommerce-checkout .wc-block-components-totals-coupon__button:hover,
body.woocommerce-checkout .wc-block-components-totals-coupon__button:focus-visible {
  background: var(--dasty-primary-hover) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  transform: none !important;
}

body.woocommerce-cart .wc-block-cart__submit-button .wc-block-components-button__text,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button .wc-block-components-button__text,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button__text {
  color: inherit;
  font: inherit;
  line-height: inherit;
}

body.woocommerce-cart .wc-block-cart__submit-button:disabled,
body.woocommerce-cart .wc-block-cart__submit-button[aria-disabled="true"],
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:disabled,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button[aria-disabled="true"],
body.woocommerce-cart .wc-block-components-totals-coupon__button:disabled,
body.woocommerce-checkout .wc-block-components-totals-coupon__button:disabled {
  background: var(--dasty-border) !important;
  color: var(--dasty-text-muted) !important;
  cursor: not-allowed;
  opacity: 1;
}

body.woocommerce-cart .wc-block-cart-items {
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 12px !important;
}

body.woocommerce-cart .wc-block-cart-items__header th {
  padding-bottom: 8px !important;
  border: 0 !important;
  color: var(--dasty-text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.woocommerce-cart .wc-block-cart-items__row > td {
  padding: 16px !important;
  border-top: 1px solid var(--dasty-border) !important;
  border-bottom: 1px solid var(--dasty-border) !important;
  background: var(--dasty-surface);
  vertical-align: middle !important;
}

body.woocommerce-cart .wc-block-cart-items__row > td:first-child {
  border-left: 1px solid var(--dasty-border) !important;
  border-radius: 8px 0 0 8px;
}

body.woocommerce-cart .wc-block-cart-items__row > td:last-child {
  border-right: 1px solid var(--dasty-border) !important;
  border-radius: 0 8px 8px 0;
}

body.woocommerce-cart .wc-block-cart-items__row,
body.woocommerce-checkout .wc-block-components-checkout-step {
  border-color: var(--dasty-border) !important;
  border-radius: 8px;
  background: var(--dasty-surface);
  box-shadow: none;
}

body.woocommerce-checkout .wc-block-components-checkout-step {
  padding: 20px !important;
}

body.woocommerce-cart .wc-block-cart-item__product {
  min-width: 0;
}

body.woocommerce-cart .wc-block-cart-item__wrap {
  display: grid;
  gap: 8px;
}

body.woocommerce-cart .wc-block-cart-item__image a,
body.woocommerce-cart .wc-block-components-order-summary-item__image,
body.woocommerce-checkout .wc-block-components-order-summary-item__image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.woocommerce-cart .wc-block-cart-item__image img,
body.woocommerce-cart .wc-block-components-order-summary-item__image img,
body.woocommerce-checkout .wc-block-components-order-summary-item__image img {
  width: 80px;
  height: 80px;
  padding: 6px;
  border: 1px solid var(--dasty-border);
  border-radius: 8px;
  background: var(--dasty-surface-warm);
  object-fit: contain;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__image img {
  width: 56px;
  height: 56px;
}

body.woocommerce-cart .wc-block-components-product-name,
body.woocommerce-checkout .wc-block-components-product-name {
  color: var(--dasty-text) !important;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

body.woocommerce-cart .wc-block-components-product-metadata,
body.woocommerce-cart .wc-block-components-product-metadata p,
body.woocommerce-checkout .wc-block-components-product-metadata,
body.woocommerce-checkout .wc-block-components-product-metadata p,
body.woocommerce-cart .wc-block-components-totals-item__description,
body.woocommerce-checkout .wc-block-components-totals-item__description {
  color: var(--dasty-text-muted);
  font-size: 14px;
  line-height: 1.5;
}

body.woocommerce-cart .wc-block-cart-item__prices,
body.woocommerce-cart .wc-block-cart-item__total,
body.woocommerce-cart .wc-block-components-product-price,
body.woocommerce-cart .wc-block-components-totals-item__value,
body.woocommerce-checkout .wc-block-components-product-price,
body.woocommerce-checkout .wc-block-components-totals-item__value,
body.woocommerce-checkout .wc-block-formatted-money-amount {
  color: var(--dasty-text);
  font-weight: 700;
}

body.woocommerce-cart .wc-block-components-sidebar,
body.woocommerce-checkout .wc-block-components-sidebar {
  padding: 20px !important;
  border: 1px solid var(--dasty-border);
  border-radius: 8px;
  background: var(--dasty-surface);
  box-shadow: none;
}

body.woocommerce-cart .wc-block-components-sidebar-layout,
body.woocommerce-checkout .wc-block-components-sidebar-layout {
  gap: 24px;
}

body.woocommerce-cart .wc-block-cart__totals-title,
body.woocommerce-checkout .wc-block-components-checkout-order-summary__title-text,
body.woocommerce-checkout .wc-block-components-title.wc-block-components-title,
body.woocommerce-cart .wc-block-components-title.wc-block-components-title {
  color: var(--dasty-text);
  font-weight: 700;
  letter-spacing: 0;
}

body.woocommerce-cart .wc-block-components-totals-wrapper,
body.woocommerce-checkout .wc-block-components-totals-wrapper,
body.woocommerce-cart .wc-block-components-panel,
body.woocommerce-checkout .wc-block-components-panel,
body.woocommerce-cart .wc-block-components-shipping-rates-control,
body.woocommerce-checkout .wc-block-components-shipping-rates-control {
  border-color: var(--dasty-border) !important;
}

body.woocommerce-cart .wc-block-components-panel__button,
body.woocommerce-checkout .wc-block-components-panel__button {
  min-height: 44px;
  color: var(--dasty-text);
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0;
}

body.woocommerce-cart .wc-block-components-panel__button:hover,
body.woocommerce-cart .wc-block-components-panel__button:focus-visible,
body.woocommerce-checkout .wc-block-components-panel__button:hover,
body.woocommerce-checkout .wc-block-components-panel__button:focus-visible {
  color: var(--dasty-primary-hover);
}

body.woocommerce-cart .wc-block-components-quantity-selector {
  min-height: 44px;
  border: 1px solid var(--dasty-border) !important;
  border-radius: 8px;
  background: var(--dasty-surface);
  overflow: hidden;
}

body.woocommerce-cart .wc-block-components-quantity-selector__input {
  width: 42px !important;
  min-height: 42px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--dasty-text) !important;
  font-weight: 700;
  text-align: center;
}

body.woocommerce-cart .wc-block-components-quantity-selector__button {
  min-width: 44px;
  min-height: 44px;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--dasty-surface-warm);
  color: var(--dasty-text);
  font-weight: 700;
}

body.woocommerce-cart .wc-block-components-quantity-selector__button:hover,
body.woocommerce-cart .wc-block-components-quantity-selector__button:focus-visible {
  background: var(--dasty-border);
  color: var(--dasty-text);
}

body.woocommerce-cart .wc-block-components-quantity-selector__button:disabled {
  background: var(--dasty-surface);
  color: var(--dasty-text-muted);
  cursor: not-allowed;
  opacity: .45;
}

body.woocommerce-cart .wc-block-cart-item__quantity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

body.woocommerce-cart .wc-block-cart-item__remove-link {
  display: grid !important;
  place-items: center;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 8px;
  background: transparent !important;
  color: var(--dasty-text-muted) !important;
  box-shadow: none !important;
}

body.woocommerce-cart .wc-block-cart-item__remove-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

body.woocommerce-cart .wc-block-cart-item__remove-link:hover,
body.woocommerce-cart .wc-block-cart-item__remove-link:focus-visible {
  border-color: var(--dasty-border) !important;
  background: var(--dasty-surface-warm) !important;
  color: var(--dasty-text) !important;
}

body.woocommerce-cart .wc-block-components-text-input input,
body.woocommerce-cart .wc-block-components-totals-coupon input,
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-address-form input,
body.woocommerce-checkout .wc-block-components-textarea,
body.woocommerce-checkout textarea,
body.woocommerce-checkout .wc-blocks-components-select__select,
body.woocommerce-checkout .wc-block-components-select__select,
body.woocommerce-checkout select {
  min-height: 48px;
  border-color: var(--dasty-border) !important;
  border-radius: 8px !important;
  background: var(--dasty-surface) !important;
  color: var(--dasty-text) !important;
  box-shadow: none !important;
}

body.woocommerce-cart .wc-block-components-text-input label,
body.woocommerce-checkout .wc-block-components-text-input label,
body.woocommerce-checkout .wc-block-components-address-form label,
body.woocommerce-checkout .wc-block-components-checkbox__label,
body.woocommerce-checkout .wc-block-components-radio-control__label {
  color: var(--dasty-text);
}

body.woocommerce-cart .wc-block-components-text-input input:focus,
body.woocommerce-cart .wc-block-components-totals-coupon input:focus,
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-address-form input:focus,
body.woocommerce-checkout .wc-block-components-textarea:focus,
body.woocommerce-checkout textarea:focus,
body.woocommerce-checkout .wc-blocks-components-select__select:focus,
body.woocommerce-checkout .wc-block-components-select__select:focus,
body.woocommerce-checkout select:focus {
  border-color: var(--dasty-primary-hover) !important;
  outline: 3px solid rgba(245, 163, 0, .24);
  outline-offset: 1px;
  box-shadow: none !important;
}

body.woocommerce-checkout .wc-block-components-text-input.has-error input,
body.woocommerce-checkout .wc-block-components-text-input input[aria-invalid="true"],
body.woocommerce-checkout .wc-blocks-components-select__select[aria-invalid="true"],
body.woocommerce-checkout .wc-block-components-select__select[aria-invalid="true"],
body.woocommerce-checkout select[aria-invalid="true"] {
  border-color: #cc1818 !important;
}

body.woocommerce-checkout .wc-block-components-validation-error {
  color: #cc1818;
}

body.woocommerce-checkout .wc-block-components-radio-control__option,
body.woocommerce-checkout .wc-block-components-radio-control-accordion-option {
  border-color: var(--dasty-border) !important;
  border-radius: 8px;
  background: var(--dasty-surface);
}

body.woocommerce-checkout .wc-block-components-radio-control__option-checked,
body.woocommerce-checkout .wc-block-components-radio-control__option--checked-option-highlighted,
body.woocommerce-checkout .wc-block-components-radio-control-accordion-option--checked-option-highlighted {
  border-color: var(--dasty-primary) !important;
  background: var(--dasty-surface-warm);
}

body.woocommerce-checkout .wc-block-components-radio-control__input,
body.woocommerce-checkout .wc-block-components-checkbox__input {
  accent-color: var(--dasty-primary);
  border-color: var(--dasty-border) !important;
  box-shadow: none;
}

body.woocommerce-cart .wc-block-components-notice-banner,
body.woocommerce-checkout .wc-block-components-notice-banner {
  border-color: var(--dasty-border);
  border-radius: 8px;
  background: var(--dasty-surface);
}

@media (max-width: 767px) {
  body.woocommerce-cart .entry-hero .entry-header,
  body.woocommerce-checkout .entry-hero .entry-header {
    padding: 18px;
    border-radius: 8px;
  }

  body.woocommerce-cart .dasty-cart-empty-block {
    max-width: none;
    margin-bottom: 28px;
  }

  body.woocommerce-cart .dasty-cart-empty {
    padding: 22px 18px;
  }

  body.woocommerce-cart .dasty-cart-empty__button {
    width: min(100%, 320px);
  }

  body.woocommerce-cart .wc-block-components-sidebar-layout,
  body.woocommerce-checkout .wc-block-components-sidebar-layout {
    gap: 16px;
  }

  body.woocommerce-cart .wc-block-cart-items {
    border-spacing: 0 10px !important;
  }

  body.woocommerce-cart .wc-block-cart-items__row {
    padding: 14px !important;
    border: 1px solid var(--dasty-border) !important;
    border-radius: 8px;
  }

  body.woocommerce-cart .wc-block-cart-item__wrap {
    gap: 6px;
  }

  body.woocommerce-cart .wc-block-cart-items__row > td {
    padding: 0 !important;
    border: 0 !important;
    background: transparent;
  }

  body.woocommerce-cart .wc-block-cart-items__row > td:first-child,
  body.woocommerce-cart .wc-block-cart-items__row > td:last-child {
    border: 0 !important;
    border-radius: 0;
  }

  body.woocommerce-cart .wc-block-cart-item__image img {
    width: 72px;
    height: 72px;
  }

  body.woocommerce-cart .wc-block-components-sidebar,
  body.woocommerce-checkout .wc-block-components-sidebar,
  body.woocommerce-checkout .wc-block-components-checkout-step {
    padding: 16px !important;
    border-radius: 8px;
  }

  body.woocommerce-cart .wc-block-cart__submit-button,
  body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
    width: 100%;
    min-height: 48px !important;
    font-size: 15px !important;
  }
}


/* Cart and checkout control refinements - 2026-09-02. */
body.woocommerce-cart .wc-block-components-product-name,
body.woocommerce-checkout .wc-block-components-product-name {
  font-weight: 700 !important;
}

body.woocommerce-cart .wc-block-cart-item__remove-link {
  flex: 0 0 40px;
  width: 40px !important;
  min-width: 40px;
  border-radius: 8px !important;
}

body.woocommerce-checkout .wc-block-components-radio-control__option,
body.woocommerce-checkout .wc-block-components-radio-control__option-checked,
body.woocommerce-checkout .wc-block-components-radio-control__option--checked-option-highlighted,
body.woocommerce-checkout .wc-block-components-radio-control-accordion-option,
body.woocommerce-checkout .wc-block-components-radio-control-accordion-option--checked-option-highlighted {
  border-radius: 8px !important;
  box-shadow: none !important;
}
