/* IranCCD Cart Night UI — only when the user's global dark mode is selected. */
/* Uses the existing WC Blocks cart and does not change cart or checkout operations. */
html[data-icc-theme="dark"] body.woocommerce-cart {
  --icc-cart-surface: #182e43;
  --icc-cart-surface-raised: #203a52;
  --icc-cart-border: #3c5770;
  --icc-cart-ink: #eaf3fe;
  --icc-cart-muted: #bacde0;
  --icc-cart-link: #91d4ff;
  --icc-cart-focus: #83cfff;
}

html[data-icc-theme="dark"] body.woocommerce-cart .site-main,
html[data-icc-theme="dark"] body.woocommerce-cart .site-main > article,
html[data-icc-theme="dark"] body.woocommerce-cart .wp-block-woocommerce-cart,
html[data-icc-theme="dark"] body.woocommerce-cart .wp-block-woocommerce-filled-cart-block,
html[data-icc-theme="dark"] body.woocommerce-cart .wp-block-woocommerce-empty-cart-block {
  color: var(--icc-cart-ink) !important;
  background-color: transparent !important;
}

html[data-icc-theme="dark"] body.woocommerce-cart .site-main > article > h1,
html[data-icc-theme="dark"] body.woocommerce-cart .site-main .entry-title,
html[data-icc-theme="dark"] body.woocommerce-cart .wc-block-cart__empty-cart__title,
html[data-icc-theme="dark"] body.woocommerce-cart .wp-block-woocommerce-cart h2,
html[data-icc-theme="dark"] body.woocommerce-cart .wc-block-cart__totals-title {
  color: var(--icc-cart-ink) !important;
}

/* Filled cart: items, item descriptions and monetary totals. */
html[data-icc-theme="dark"] body.woocommerce-cart .wc-block-cart-items,
html[data-icc-theme="dark"] body.woocommerce-cart .wc-block-cart-items__row,
html[data-icc-theme="dark"] body.woocommerce-cart .wc-block-cart__sidebar {
  background-color: var(--icc-cart-surface) !important;
  color: var(--icc-cart-ink) !important;
}
html[data-icc-theme="dark"] body.woocommerce-cart .wc-block-cart-items__row td,
html[data-icc-theme="dark"] body.woocommerce-cart .wc-block-cart-items__row:first-child td,
html[data-icc-theme="dark"] body.woocommerce-cart .wc-block-cart__sidebar,
html[data-icc-theme="dark"] body.woocommerce-cart .wc-block-components-totals-wrapper,
html[data-icc-theme="dark"] body.woocommerce-cart .wc-block-components-order-summary__button,
html[data-icc-theme="dark"] body.woocommerce-cart .wc-block-components-panel {
  border-color: var(--icc-cart-border) !important;
}
html[data-icc-theme="dark"] body.woocommerce-cart .wc-block-cart-item__image img {
  background: #eff4f8 !important;
}
html[data-icc-theme="dark"] body.woocommerce-cart :is(
  .wc-block-components-product-name,
  .wc-block-cart-item__product .wc-block-components-product-name,
  .wc-block-components-product-price,
  .wc-block-components-product-price__value,
  .wc-block-cart-item__total,
  .wc-block-components-totals-item__label,
  .wc-block-components-totals-item__value,
  .wc-block-components-totals-footer-item__label,
  .wc-block-components-totals-footer-item__value,
  .wc-block-components-order-summary__button,
  .wc-block-cart__sidebar .wc-block-components-formatted-money-amount
) {
  color: var(--icc-cart-ink) !important;
}
html[data-icc-theme="dark"] body.woocommerce-cart :is(
  .wc-block-components-product-metadata,
  .wc-block-components-product-details,
  .wc-block-components-product-details__name,
  .wc-block-components-product-details__value,
  .wc-block-components-totals-item__description,
  .wc-block-components-shipping-rates-control,
  .wc-block-components-totals-shipping__via,
  .wc-block-components-totals-shipping__change-address__link,
  .wc-block-components-validation-error
) {
  color: var(--icc-cart-muted) !important;
}

/* Quantity stepper and coupon/shipping inputs. */
html[data-icc-theme="dark"] body.woocommerce-cart .wc-block-components-quantity-selector,
html[data-icc-theme="dark"] body.woocommerce-cart .wc-block-components-text-input input,
html[data-icc-theme="dark"] body.woocommerce-cart .wc-block-components-combobox .wc-block-components-combobox-control input,
html[data-icc-theme="dark"] body.woocommerce-cart .wc-block-components-totals-coupon__form input {
  background: var(--icc-cart-surface-raised) !important;
  color: var(--icc-cart-ink) !important;
  border-color: var(--icc-cart-border) !important;
}
html[data-icc-theme="dark"] body.woocommerce-cart .wc-block-components-quantity-selector input,
html[data-icc-theme="dark"] body.woocommerce-cart .wc-block-components-quantity-selector button {
  color: var(--icc-cart-ink) !important;
  background: transparent !important;
}
html[data-icc-theme="dark"] body.woocommerce-cart .wc-block-components-quantity-selector button:hover:not(:disabled) {
  background: #31516c !important;
}
html[data-icc-theme="dark"] body.woocommerce-cart .wc-block-components-quantity-selector button:disabled {
  color: #829bb2 !important;
  opacity: .65;
}
html[data-icc-theme="dark"] body.woocommerce-cart :is(
  .wc-block-components-text-input label,
  .wc-block-components-combobox .wc-block-components-combobox-control label,
  .wc-block-components-checkbox__label,
  .wc-block-components-radio-control__label,
  .wc-block-components-address-form__address_2-toggle
) {
  color: var(--icc-cart-muted) !important;
}
html[data-icc-theme="dark"] body.woocommerce-cart .wc-block-components-totals-coupon-link,
html[data-icc-theme="dark"] body.woocommerce-cart .wc-block-components-totals-shipping__change-address__link,
html[data-icc-theme="dark"] body.woocommerce-cart .wp-block-woocommerce-cart a:not(.wc-block-cart__submit-button):not(.wp-block-button__link) {
  color: var(--icc-cart-link) !important;
}
html[data-icc-theme="dark"] body.woocommerce-cart .wc-block-cart-item__remove-link {
  color: #ffa2ad !important;
}
html[data-icc-theme="dark"] body.woocommerce-cart .wc-block-cart-item__remove-link:hover {
  color: #ffc3cb !important;
}

/* Primary and secondary actions: accessible contrast in dark mode. */
html[data-icc-theme="dark"] body.woocommerce-cart .wc-block-cart__submit-button,
html[data-icc-theme="dark"] body.woocommerce-cart .wc-block-components-checkout-place-order-button {
  background: #087abf !important;
  color: #fff !important;
  border-color: #1689d1 !important;
}
html[data-icc-theme="dark"] body.woocommerce-cart .wc-block-cart__submit-button:hover {
  background: #09669c !important;
}
html[data-icc-theme="dark"] body.woocommerce-cart .wc-block-components-totals-coupon__button,
html[data-icc-theme="dark"] body.woocommerce-cart .wc-block-components-button:not(.wc-block-cart__submit-button) {
  background: #294a64 !important;
  color: #f0f7ff !important;
  border: 1px solid #537693 !important;
}
html[data-icc-theme="dark"] body.woocommerce-cart :is(
  .wc-block-components-button,
  .wc-block-components-quantity-selector button,
  .wc-block-cart-item__remove-link,
  .wp-block-button__link,
  a,
  input
):focus-visible {
  outline: 2px solid var(--icc-cart-focus) !important;
  outline-offset: 3px !important;
}

/* Empty-cart recommendations. Their default WC grid has light-only surfaces. */
html[data-icc-theme="dark"] body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products .wc-block-grid__product,
html[data-icc-theme="dark"] body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-components-product-card {
  background: var(--icc-cart-surface) !important;
  color: var(--icc-cart-ink) !important;
  border-color: var(--icc-cart-border) !important;
}
html[data-icc-theme="dark"] body.woocommerce-cart .wp-block-woocommerce-empty-cart-block :is(
  .wc-block-grid__product-title,
  .wc-block-grid__product-price,
  .wc-block-grid__product-price .amount,
  .wc-block-components-product-name,
  .wc-block-grid__product-link
) {
  color: var(--icc-cart-ink) !important;
}
html[data-icc-theme="dark"] body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-button__link,
html[data-icc-theme="dark"] body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart a {
  background: #087abf !important;
  color: #fff !important;
  border-color: #1689d1 !important;
}
html[data-icc-theme="dark"] body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-button__link:hover,
html[data-icc-theme="dark"] body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart a:hover {
  background: #09669c !important;
}
html[data-icc-theme="dark"] body.woocommerce-cart .wp-block-separator {
  border-color: var(--icc-cart-border) !important;
}
@media (max-width: 800px) {
  html[data-icc-theme="dark"] body.woocommerce-cart .wc-block-cart__sidebar {
    box-shadow: 0 10px 28px rgba(0, 0, 0, .2) !important;
  }
}
