/* Cart and checkout share the storefront's restrained content width. */
body.woocommerce-cart .page-main .content-container,
body.woocommerce-checkout .page-main .content-container {
  width: min(100% - 48px, 1120px);
  margin-inline: auto;
}

body.woocommerce-cart .page-main,
body.woocommerce-checkout .page-main {
  min-width: 0;
  padding: 30px 0 64px;
}

body.woocommerce-cart .page-main,
body.woocommerce-checkout .page-main {
  background: #fff;
}

body.woocommerce-cart .page-main article,
body.woocommerce-checkout .page-main article,
body.woocommerce-cart .page-main .entry-content,
body.woocommerce-checkout .page-main .entry-content,
body.woocommerce-cart .page-main .alignwide,
body.woocommerce-checkout .page-main .alignwide {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-inline: 0;
}

body.woocommerce-cart .page-main > .content-container .section-title,
body.woocommerce-checkout .page-main > .content-container .section-title {
  margin: 0 0 22px;
  color: #1c2621;
  font-family: var(--silk-serif);
  font-size: clamp(29px, 3vw, 38px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.22;
}

/* Cart and checkout blocks */
body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-checkout .wp-block-woocommerce-checkout {
  padding: 0;
  color: var(--silk-ink);
  font-family: var(--silk-sans);
  font-size: 13px;
}

body.woocommerce-cart .wc-block-components-sidebar-layout,
body.woocommerce-checkout .wc-block-components-sidebar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 340px);
  align-items: start;
  gap: 30px;
  margin: 0;
}

body.woocommerce-cart .wc-block-components-sidebar-layout > .wc-block-components-main,
body.woocommerce-cart .wc-block-components-sidebar-layout > .wc-block-components-sidebar,
body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-components-main,
body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-components-sidebar {
  float: none;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-cart .wc-block-cart__sidebar,
body.woocommerce-checkout .wc-block-checkout__sidebar {
  overflow: hidden;
  border: 1px solid #e9e6e1;
  border-radius: 9px;
  background: #fff;
}

body.woocommerce-cart .wc-block-cart__main { padding: 0 20px; }
body.woocommerce-cart .wc-block-cart__sidebar { padding: 18px 20px 20px; background: #faf8f6; }
body.woocommerce-checkout .wc-block-checkout__sidebar { padding: 16px 18px 18px; background: #faf8f6; }
/* WooCommerce duplicates the summary inside the form at narrower widths. */
body.woocommerce-checkout .wc-block-checkout:has(.checkout-order-summary-block-fill-wrapper) > .wc-block-checkout__sidebar { display: none; }

body.woocommerce-cart .wc-block-cart-items { width: 100%; margin: 0; }
body.woocommerce-cart .wc-block-cart-items__header { color: #777f77; font-size: 10px; letter-spacing: .08em; }
body.woocommerce-cart .wc-block-cart-items__row { border-color: #ece8e4; }
body.woocommerce-cart .wc-block-cart-item__image img,
body.woocommerce-checkout .wc-block-components-order-summary-item__image img { border-radius: 5px; }
body.woocommerce-cart .wc-block-cart-item__product a { color: #25352c; font-size: 13px; font-weight: 600; line-height: 1.4; }
body.woocommerce-cart .wc-block-components-product-metadata,
body.woocommerce-checkout .wc-block-components-product-metadata { color: #70776f; font-size: 11px; }
body.woocommerce-cart .wc-block-components-quantity-selector { border-color: #dedbd6; border-radius: 5px; }

body.woocommerce-cart .wc-block-cart__totals-title {
  padding: 0 0 12px;
  border-bottom: 1px solid #e5e1dc;
  color: #293a30;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
}

body.woocommerce-cart .wc-block-components-totals-wrapper,
body.woocommerce-checkout .wc-block-components-totals-wrapper { border-color: #e9e5e0; }

body.woocommerce-cart .wc-block-components-totals-footer-item,
body.woocommerce-checkout .wc-block-components-totals-footer-item { color: #1e3026; font-size: 16px; font-weight: 700; }

body.woocommerce-cart .wc-block-components-button,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  min-height: 46px;
  border: 1px solid var(--silk-green);
  border-radius: 5px;
  background: var(--silk-green);
  color: #fff;
  font-family: var(--silk-sans);
  font-size: 13px;
  font-weight: 600;
  transition: background-color .2s ease;
}

body.woocommerce-cart .wc-block-components-button:hover,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
  background: #18392b;
  color: #fff;
}

body.woocommerce-cart .wc-block-components-button:focus-visible,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:focus-visible { outline: 2px solid #8a9f8e; outline-offset: 3px; }

/* Empty cart stays useful and visually balanced. */
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block { padding: 0; }
body.woocommerce-cart .wc-block-cart__empty-cart__title {
  margin: 0 auto 26px;
  border: 1px solid #e9e6e1;
  border-radius: 9px;
  padding: 26px 20px;
  background: #faf8f6;
  color: #334139;
  font-family: var(--silk-serif);
  font-size: 23px;
  font-weight: 400;
}
body.woocommerce-cart .wc-block-cart__empty-cart__title::before,
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-separator.is-style-dots { display: none; }
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block > .wp-block-heading { margin-bottom: 20px; font-family: var(--silk-serif); font-size: 25px; font-weight: 400; }
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
}
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product { display: flex; flex-direction: column; max-width: none; min-width: 0; border: 0; padding: 0; text-align: left; }
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image img { width: 100%; aspect-ratio: 3 / 4; border-radius: 7px; object-fit: cover; }
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title { min-height: 36px; color: #26352b; font-size: 12px; font-weight: 600; line-height: 1.45; }
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price { color: #254535; font-size: 13px; font-weight: 700; }
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart { margin-top: auto; padding-top: 12px; }
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .wp-block-button__link { border-radius: 5px; background: var(--silk-green); font-size: 11px; }

/* Checkout form */
body.woocommerce-checkout .wc-block-checkout__main .wc-block-components-checkout-step {
  margin: 0 0 16px;
  border: 1px solid #e9e6e1;
  border-radius: 9px;
  padding: 18px 20px 20px;
  background: #fff;
}

body.woocommerce-checkout .wc-block-components-checkout-step__heading { margin: 0 0 14px; }
body.woocommerce-checkout .wc-block-components-checkout-step__title,
body.woocommerce-checkout .wc-block-components-checkout-step__heading h2 {
  color: #25362c;
  font-family: var(--silk-serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -.035em;
}

body.woocommerce-checkout .wc-block-components-checkout-step__content { margin: 0; }
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__select {
  min-height: 46px;
  border: 1px solid #dedbd5;
  border-radius: 5px;
  background: #fff;
  color: #26322b;
  font-family: var(--silk-sans);
  font-size: 13px;
}

body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__select:focus { border-color: var(--silk-green); outline: 1px solid var(--silk-green); }
body.woocommerce-checkout .wc-block-components-text-input label,
body.woocommerce-checkout .wc-blocks-components-select__label { color: #656e67; font-size: 12px; }
body.woocommerce-checkout .wc-block-checkout__guest-checkout-notice,
body.woocommerce-checkout .wc-block-checkout__terms { color: #69726a; font-size: 11px; line-height: 1.6; }
body.woocommerce-checkout .wc-block-components-checkout-order-summary__title-text { color: #28382e; font-family: var(--silk-serif); font-size: 19px; font-weight: 400; }
body.woocommerce-checkout .wc-block-components-checkout-order-summary__title { padding: 0 0 12px; }
body.woocommerce-checkout .wc-block-checkout__payment-method { margin-top: 0; }
body.woocommerce-checkout .wc-block-components-radio-control { border-radius: 6px; }

@media (max-width: 900px) {
  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.woocommerce-cart .wc-block-components-sidebar-layout,
  body.woocommerce-checkout .wc-block-components-sidebar-layout { grid-template-columns: minmax(0, 1fr) minmax(255px, 300px); gap: 20px; }
}

@media (min-width: 901px) {
  body.woocommerce-cart .page-main { min-height: calc(100vh - 300px); }
}

@media (max-width: 700px) {
  body.woocommerce-cart .page-main .content-container,
  body.woocommerce-checkout .page-main .content-container { width: calc(100% - 32px); }

  body.woocommerce-cart .page-main,
  body.woocommerce-checkout .page-main { padding: 22px 0 46px; }

  body.woocommerce-cart .page-main > .content-container .section-title,
  body.woocommerce-checkout .page-main > .content-container .section-title { margin-bottom: 18px; font-size: 29px; }

  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; padding-top: 18px; }

  body.woocommerce-cart .wc-block-components-sidebar-layout,
  body.woocommerce-checkout .wc-block-components-sidebar-layout { display: block; }
  body.woocommerce-cart .wc-block-cart__main { padding: 0 12px; }
  body.woocommerce-cart .wc-block-cart__sidebar { margin-top: 16px !important; padding: 16px; }
  body.woocommerce-checkout .wc-block-checkout__sidebar { margin-top: 18px !important; padding: 14px; }
  body.woocommerce-checkout .wc-block-checkout__main .wc-block-components-checkout-step { margin-bottom: 12px; padding: 16px; }
  body.woocommerce-checkout .wc-block-components-checkout-step__title,
  body.woocommerce-checkout .wc-block-components-checkout-step__heading h2 { font-size: 19px; }
  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product { flex: none; width: 100%; }
  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title { min-height: 48px; }
  body.woocommerce-cart .back-to-top,
  body.woocommerce-checkout .back-to-top { display: none; }
}
