/* ── My Shopping Cart ── */
.editor-styles-wrapper
  table.wc-block-cart-items
  .wc-block-cart-items__header
  th,
table.wc-block-cart-items .wc-block-cart-items__header th {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-emphasis);
  letter-spacing: 0.02em;
}

.editor-styles-wrapper
  table.wc-block-cart-items
  .wc-block-cart-items__row
  .wc-block-components-product-name,
table.wc-block-cart-items
  .wc-block-cart-items__row
  .wc-block-components-product-name {
  display: block;
  color: var(--color-emphasis);
  font-size: var(--font-size-md);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  max-width: max-content;
  transition: color var(--transition-base);
}
.editor-styles-wrapper
  table.wc-block-cart-items
  .wc-block-cart-items__row
  .wc-block-components-product-name:hover,
table.wc-block-cart-items
  .wc-block-cart-items__row
  .wc-block-components-product-name:hover {
  color: var(--color-primary);
}

.editor-styles-wrapper
  table.wc-block-cart-items
  .wc-block-cart-items__row
  .wc-block-cart-item__total,
table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-primary);
  text-align: right;
}

.wc-block-formatted-money-amount.wc-block-components-formatted-money-amount.wc-block-components-product-price__value {
  font-size: var(--font-size-md);
  font-weight: 600;
}

.wc-block-cart-item__product .wc-block-components-product-metadata {
  display: none;
}

.wc-block-components-quantity-selector
  input.wc-block-components-quantity-selector__input {
  color: var(--color-primary);
  font-size: var(--font-size-md);
  font-weight: 600;
}

.wc-block-components-quantity-selector
  > .wc-block-components-quantity-selector__button--minus,
.wc-block-components-quantity-selector
  > .wc-block-components-quantity-selector__button--plus {
  background: var(--color-surface-subtle);
  box-shadow: none;
  color: currentColor;
  cursor: pointer;
  font-size: 1.7rem;
  font-style: normal;
  font-weight: 400;
  margin: 0;
  min-width: 30px;
  opacity: 0.6;
  padding: 0;
  text-align: center;
  text-decoration: none;
  transition:
    background var(--transition-base),
    color var(--transition-base) 0.25s ease;
}

.wc-block-components-quantity-selector
  > .wc-block-components-quantity-selector__button--minus:hover,
.wc-block-components-quantity-selector
  > .wc-block-components-quantity-selector__button--plus:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

table.wc-block-cart-items
  .wc-block-cart-items__row
  .wc-block-cart-item__quantity
  .wc-block-cart-item__remove-link:hover
  svg {
  fill: #cc1818;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item
  .wc-block-components-totals-item__value {
  font-size: var(--wp--preset--font-size--medium, 22px);
  line-height: 1.4;
}

h2.wp-block-woocommerce-cart-order-summary-heading-block.wc-block-cart__totals-title {
  color: var(--color-emphasis);
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-top: 0;
}
.wc-block-components-totals-wrapper {
  background: linear-gradient(
    90deg,
    rgba(12, 160, 223, 0.06),
    rgba(66, 133, 244, 0.06)
  );
  font-weight: 700;
  color: var(--color-emphasis);
}

.wp-block-woocommerce-cart-order-summary-coupon-form-block.wc-block-components-totals-wrapper,
.wp-block-woocommerce-cart-order-summary-shipping-block.wc-block-components-totals-wrapper {
  background: #ffffff;
}

.wc-block-cart
  .wp-block-woocommerce-cart-order-summary-block
  .wc-block-components-panel,
.wc-block-cart
  .wp-block-woocommerce-cart-order-summary-block
  .wc-block-components-totals-coupon,
.wc-block-cart
  .wp-block-woocommerce-cart-order-summary-block
  .wc-block-components-totals-item {
  font-size: var(--font-size-md);
}

.wc-block-components-totals-footer-item
  .wc-block-components-totals-item__value {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-primary);
}

/* Utility */
:root :where(.wp-element-button, .wp-block-button__link, ),
body:not(.woocommerce-block-theme-has-button-styles)
  .wc-block-components-button:not(.is-link) {
  background: var(--gradient-primary);
  color: var(--color-text-inverse);
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: var(--font-size-md);
  font-weight: 700;
  padding-top: calc(0.667em + 2px);
  padding-right: calc(1.333em + 2px);
  padding-bottom: calc(0.667em + 2px);
  padding-left: calc(1.333em + 2px);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 1.6rem rgba(12, 160, 223, 0.35);
}

:root :where(.wp-element-button, .wp-block-button__link):hover,
body:not(.woocommerce-block-theme-has-button-styles)
  .wc-block-components-button:not(.is-link):hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ── Checkout ── */
.wc-block-components-title.wc-block-components-title,
.wp-block-woocommerce-checkout-order-summary-block
  .wc-block-components-checkout-order-summary__title {
  color: var(--color-emphasis);
}

.wc-block-components-address-card,
.wc-block-components-radio-control__label-group
  .wc-block-components-radio-control__label,
.wc-block-components-radio-control__description-group,
.wc-block-components-radio-control__label-group {
  font-size: var(--font-size-md);
}

.wp-block-woocommerce-checkout-order-summary-block {
  border: 1px solid var(--color-border-secondary);
  background: var(--color-surface-base);
  border-radius: var(--radius-lg);
  box-sizing: border-box;
  font-size: var(--font-size-md);
}

.wc-block-components-totals-wrapper {
  border-top: 1px solid var(--color-border-secondary);
}

.wc-block-components-formatted-money-amount {
  color: var(--color-primary);
}

/* ── Order Received ── */
.woocommerce .woocommerce-order {
  font-size: 1.8rem;
  margin-top: 3.6rem;
}
.woocommerce .woocommerce-order p,
.woocommerce .woocommerce-order h2,
.woocommerce-table--order-details a {
  color: var(--color-primary);
}

.woocommerce .woocommerce-order p {
  font-size: 2.1rem;
  font-weight: 500;
  margin-bottom: 2.4rem;
}

.woocommerce .woocommerce-order h2 {
  font-size: 2.6rem;
  font-weight: 600;
}

.woocommerce ul.order_details {
  background-color: var(--color-surface-muted);
  border: 1px solid var(--color-border-secondary);
  border-radius: var(--radius-md);
  list-style: none;
  padding: 2.4rem 3.6rem;
  margin: 0 0 3.6rem;
}

.woocommerce ul.order_details li,
.woocommerce ul.order_details li strong {
  font-size: var(--font-size-md);
}

.woocommerce .woocommerce-order .woocommerce-thankyou-order-details li strong,
.woocommerce .woocommerce-bacs-bank-details h3 {
  color: var(--color-emphasis);
}

.woocommerce .woocommerce-order-overview li:last-of-type,
.woocommerce .woocommerce-bacs-bank-details ul.order_details li,
.woocommerce .woocommerce-bacs-bank-details ul.order_details li strong {
  margin-top: 1.9rem;
}

.woocommerce div.product p.price ins, .woocommerce div.product span.price ins, .woocommerce-Price-amount {
    color: var(--color-primary)
    font-weight: 600;
}

.woocommerce .woocommerce-order ul.order_details li .woocommerce-Price-amount,
tfoot .woocommerce-Price-amount {
  color: var(--color-accent);
  font-size: var(--font-size-xl);
  font-weight: 600;
}

.woocommerce .woocommerce-order-details h2,
.woocommerce-customer-details .woocommerce-column--billing-address h2,
.woocommerce-customer-details .woocommerce-column--shipping-address h2 {
  font-size: 2.6rem;
  color: var(--color-primary);
}

.woocommerce table.shop_table thead {
  background-color: var(--color-emphasis);
  color: var(--color-text-inverse);
  font-size: 1.9rem;
}

.woocommerce table.shop_table {
  border-collapse: collapse;
  font-size: var(--font-size-md);
  border: 1px solid var(--color-border-secondary);
  text-align: left;
  width: 100%;
  margin: 0 -1px 24px 0;
}

.woocommerce table.shop_table tbody th, .woocommerce table.shop_table tfoot td, .woocommerce table.shop_table tfoot th {
    border-top: 1px solid var(--color-border-secondary);
}

.woocommerce table.shop_table th, .woocommerce table.shop_table td {
    padding: 1rem 1.2rem 1rem 3.6rem;
}

.woocommerce table.shop_table td {
    vertical-align: middle;
    line-height: 1.5em;
}

.woocommerce-bacs-bank-details .wc-bacs-bank-details-heading {
  margin-top: 4.4rem;
  margin-bottom: 2rem;
}

.woocommerce .woocommerce-bacs-bank-details h3,
.woocommerce .woocommerce-bacs-bank-details ul {
  padding-left: 2.4rem;
}

.woocommerce-table--order-details a {
  text-decoration: underline;
}

.woocommerce-table--order-details a:hover {
  color: var(--color-secondary);
}

.woocommerce .woocommerce-customer-details address {
  font-size: 1.7rem;
  background-color: var(--color-surface-muted);
  border: 1px solid var(--color-border-secondary);
  border-radius: var(--radius-md);
  padding: 2.4rem 3.6rem;
  margin-top: 1.2rem;
}

.woocommerce .woocommerce-order p.woocommerce-customer-details--phone {
  margin-bottom: 0;
}

.download-product a {
  fcolor: var(--color-emphasis);
  font-weight: 500;
}

.download-product a:hover {
  fcolor: var(--color-primary);
}

.woocommerce-order-downloads a.button.alt {
  color: var(--color-text-inverse);
  font-weight: 500;
  background-color: var(--color-accent);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.4rem;
  transition: all 0.3s;
}

.woocommerce-order-downloads a.button.alt:hover {
  background-color: #c1036b;
}

/* ── Responsive: Download table on mobile ── */
@media (max-width: 768px) {

  table.woocommerce-table--order-downloads {
    border: none;
  }

  table.woocommerce-table--order-downloads thead {
    display: none;
  }

  table.woocommerce-table--order-downloads tbody tr {
    display: block;
    border: 1px solid var(--color-border-secondary);
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 12px;
  }

  table.woocommerce-table--order-downloads td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border-secondary);
    font-size: var(--font-size-sm);
    text-align: right;
  }

  table.woocommerce-table--order-downloads td:last-child {
    border-bottom: none;
  }

  table.woocommerce-table--order-downloads td::before {
    content: attr(data-title) ": ";
    font-weight: 600;
    text-align: left;
    flex-shrink: 0;
    color: var(--color-text-secondary);
  }

  table.woocommerce-table--order-downloads td.download-file {
    flex-direction: column;
    align-items: flex-start;
  }

  table.woocommerce-table--order-downloads td.download-file::before {
    margin-bottom: 6px;
  }

  table.woocommerce-table--order-downloads td.download-file a.button {
    width: 100%;
    text-align: center;
    word-break: break-word;
  }
}