/* WooCommerce cart, checkout and account pages — matched to main.css tokens. */

.woocommerce-page .single-page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) 24px clamp(56px, 7vw, 96px);
  box-sizing: border-box;
}
.woocommerce-page .single-page *,
.woocommerce-page .single-page *::before,
.woocommerce-page .single-page *::after { box-sizing: border-box; }

.wc-page-title { margin: 0 0 clamp(24px, 3vw, 40px); font-size: clamp(2rem, 4vw, 3rem); }

.woocommerce-page .wp-block-woocommerce-checkout,
.woocommerce-page .wp-block-woocommerce-cart {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
}

/* Section headings */
.wc-block-components-title.wc-block-components-title,
.wc-block-components-checkout-step__title,
.wc-block-cart__totals-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--color-ink);
}

/* Inputs */
.wc-block-components-text-input input,
.wc-block-components-text-input input[type],
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-textarea {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  color: var(--color-ink);
}
.wc-block-components-text-input input:focus,
.wc-blocks-components-select .wc-blocks-components-select__select:focus,
.wc-block-components-textarea:focus {
  border-color: var(--color-olive);
  box-shadow: 0 0 0 1px var(--color-olive);
  outline: none;
}
.wc-block-components-text-input.is-active label,
.wc-block-components-text-input label { color: var(--color-muted); }

/* Payment methods box */
.wc-block-components-radio-control-accordion-option,
.wc-block-checkout__payment-method .wc-block-components-radio-control__option {
  background: #fff;
}
.wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option { border-color: var(--color-line); }

/* Order summary card */
.wp-block-woocommerce-checkout-order-summary-block,
.wp-block-woocommerce-cart-totals-block {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.wc-block-components-order-summary-item__image img { border-radius: var(--radius); }
.wc-block-components-order-summary-item__quantity {
  background: var(--color-olive);
  border-color: var(--color-olive);
  color: var(--color-cream);
}

/* Buttons */
.wc-block-components-checkout-place-order-button,
.wc-block-cart__submit-button,
.wc-block-components-button:not(.is-link):not(.wc-block-components-totals-coupon__button),
.woocommerce a.button,
.woocommerce button.button,
.woocommerce-page .single-page .button {
  background: var(--color-olive);
  color: var(--color-cream);
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 600;
  min-height: 52px;
  box-shadow: var(--shadow-sm);
  transition: background var(--t), transform var(--t);
}
.wc-block-components-checkout-place-order-button:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-button:not(.is-link):not(.wc-block-components-totals-coupon__button):hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce-page .single-page .button:hover {
  background: var(--color-olive-deep);
  color: var(--color-cream);
}

/* Classic (non-block) buttons: centre the label instead of letting min-height push it to the top. */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce-page .single-page .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
}
.woocommerce table.shop_table .button { min-height: 36px; padding: 8px 16px; }
.woocommerce table.shop_table .button + .button { margin-left: 6px; }

/* Notices with an action button (e.g. "Confirm email address") */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.woocommerce-message::after,
.woocommerce-info::after,
.woocommerce-error::after { display: none; }
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
  float: none;
  order: 2;
  margin: 0 0 0 auto;
}

.wc-block-checkout__terms a,
.wc-block-components-checkout-return-to-cart-button,
.woocommerce-page .single-page a:not(.button):not(.wc-block-components-button) { color: var(--color-olive); }

/* Classic My Account / thank-you tables */
.woocommerce table.shop_table { border-color: var(--color-line); border-radius: var(--radius); background: #fff; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; }
.woocommerce-MyAccount-navigation li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--color-line); text-decoration: none; }
.woocommerce-MyAccount-navigation li.is-active a { color: var(--color-ink); font-weight: 600; }

@media (max-width: 700px) {
  .woocommerce-page .single-page { padding-left: 16px; padding-right: 16px; }
  .wc-block-components-checkout-place-order-button { width: 100%; }
  .woocommerce-message .button,
  .woocommerce-info .button,
  .woocommerce-error .button { width: 100%; margin-left: 0; white-space: normal; }
}

/* WooCommerce hides the order-number cell on small screens; show it like the other rows. */
@media (max-width: 768px) {
  .woocommerce table.shop_table_responsive tbody th,
  .woocommerce-page table.shop_table_responsive tbody th {
    display: block;
    text-align: right;
    padding: 8px 9px;
    border-bottom: 1px solid var(--color-line);
  }
  .woocommerce table.shop_table_responsive tbody th::before,
  .woocommerce-page table.shop_table_responsive tbody th::before {
    content: attr(data-title) ": ";
    float: left;
    font-weight: 700;
  }
}

.wc-block-components-checkout-order-summary__title { padding-left: 16px; padding-right: 16px; }
