/* ============================================================
   WooCommerce BLOCK Cart — restyled to match cart drawer
   Save as: your-theme/css/cart-page.css
   Enqueue only on the cart page — see functions.php snippet
   ============================================================ */
body.woocommerce-cart {
  background: #dee9f1;
}
.container {
    padding: 0px 15px !important;
}
.wc-block-cart {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark);
}
.woocommerce-cart h1 {
    padding-top: 40px;
  font-size: 40px;
  text-align: left;
  margin-bottom: 20px;
}
.wc-block-cart {
  gap: 28px;
  align-items: flex-start;
}
.wc-block-components-main {
  background: #fff;
  padding: 20px !important;
  border-radius: 12px;
  width: calc(65% - 14px) !important;
}
.wc-block-components-sidebar {
  background: #fff !important;
  padding: 20px !important;
  border-radius: 12px;
  width: calc(35% - 14px) !important;
  text-align: left;
}
.wp-block-woocommerce-cart-order-summary-coupon-form-block.wc-block-components-totals-wrapper {
  display: none;
}
/* ============================================================
   PRODUCT TABLE (left column)
   ============================================================ */

.wc-block-cart-items {
  border: none;
  border-collapse: collapse;
  width: 100%;
}

.wc-block-cart-items__header th {
  text-align: left;
  font-size: 22px !important;
  font-weight: 500 !important;
  border: none;
  border-bottom: 1px solid rgba(41, 45, 45, 0.15);
  padding: 0 0 14px;
  background: none;
  text-transform: capitalize !important;
}

.wc-block-cart-items__header-total {
  text-align: right;
}

.wc-block-cart-items__row td {
  border: none;
  border-bottom: 1px solid rgba(41, 45, 45, 0.15);
  padding: 20px 0;
  vertical-align: top;
  background: none;
}

/* --- Product image --- */
.wc-block-cart-item__image img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* --- Product name --- */
.wc-block-components-product-name {
  font-size: 16px !important;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 4px;
}

/* --- Price row: $129.00 strike / $99.00 / every month --- */
.wc-block-cart-item__prices .price {
  font-size: 14px;
  display: block;
  margin-bottom: 0px;
}

.wc-block-components-product-price__regular {
  color: #999;
  font-weight: 400;
  text-decoration: line-through;
  margin-right: 4px;
}

.wc-block-components-product-price__value.is-discounted {
  color: #1a1a1a;
  font-weight: 600;
  text-decoration: none;
}

/* --- Metadata (e.g. "500 mcg per day · 30-day supply") --- */
.wc-block-components-product-metadata__description p {
  font-size: 13px;
  font-weight: 400;
  margin: 0;
}
.wc-block-components-product-metadata__description strong {
  font-weight: 500;
}

/* --- Quantity stepper — matches .qty-control --- */
.wc-block-components-quantity-selector {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(41, 45, 45, 0.25);
  border-radius: 8px;
  padding: 0px;
  width: fit-content;
  height: auto;
}

.wc-block-components-quantity-selector__input {
  width: 24px;
  text-align: center;
  border: none;
  outline: none;
  font-size: 15px;
  font-weight: 500;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  padding: 0;
  -moz-appearance: textfield;
}
.wc-block-components-quantity-selector__input::-webkit-outer-spin-button,
.wc-block-components-quantity-selector__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.wc-block-components-quantity-selector__button {
  background: var(--teal);
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
  width: auto;
  height: auto;
  color: var(--off-white);
}

/* --- Remove item link (trash icon) --- */
.wc-block-cart-item__remove-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  opacity: 0.55;
  transition: opacity 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  color: #292d2d;
}
.wc-block-cart-item__remove-link:hover {
  opacity: 1;
  background: none;
  color: #292d2d;
}
.wc-block-cart-item__remove-link svg {
  width: 18px;
  height: 18px;
  fill: #292d2d;
}

.wc-block-cart-item__quantity {
  display: flex;
  align-items: center;
  margin-top: 3px;
}

/* --- Total column (right side of table) --- */
.wc-block-cart-item__total {
  text-align: right;
}

.wc-block-cart-item__total .wc-block-components-product-price__value {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
}

/* "Save $X / month" badge — matches .ps-badge / subscribe-save-text */
.wc-block-components-sale-badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  background: #eee;
  border-radius: 6px;
  padding: 4px 10px;
}

/* ============================================================
   CART TOTALS SIDEBAR (right column)
   ============================================================ */

.wc-block-cart__sidebar {
  background: none;
  border: none;
  padding: 0;
}

.wc-block-cart__totals-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(41, 45, 45, 0.15);
  padding-bottom: 14px;
  margin-bottom: 0;
}

/* Coupon panel toggle — "Add coupons" */
.wc-block-components-totals-coupon .wc-block-components-panel__button {
  font-size: 14px;
  font-weight: 400;
  color: #1a1a1a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row-reverse;
  padding: 16px 0;
  border-bottom: 1px solid rgba(41, 45, 45, 0.15);
}
.wc-block-components-panel__button-icon {
  fill: #1a1a1a;
}

/* Generic totals row (shipping, etc.) */
.wc-block-components-totals-item {
  padding: 16px 0;
}
.wc-block-components-totals-item__label {
  font-size: 14px;
  font-weight: 400;
}
.wc-block-components-totals-item__value {
  font-size: 14px;
  font-weight: 400;
}

/* "Free shipping" row — bold "Free" like screenshot */
.wc-block-components-totals-shipping .wc-block-components-totals-item__label {
  text-transform: capitalize;
}
.wc-block-components-totals-shipping
  .wc-block-components-totals-item__value
  strong {
  font-weight: 600;
  font-size: 13px;
}

/* "Total due today" row — emphasized, DM Mono like .subtotal-label */
.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: 18px;
  font-weight: 500;
  font-family: 'DM Mono', monospace;
}

/* Monthly recurring total block */
.wcs-recurring-totals-panel__title .wc-block-components-totals-item__label {
  font-size: 14px;
  font-weight: 500;
}
.wcs-recurring-totals-panel__title .wc-block-components-totals-item__value {
  font-size: 14px;
  font-weight: 500;
}
.wcs-recurring-totals-panel__title
  .wc-block-components-totals-item__description
  span {
  font-size: 12px;
  font-weight: 400;
}

.wcs-recurring-totals-panel__details .wc-block-components-panel__button {
  font-size: 14px;
  font-weight: 400;
  justify-content: space-between;
  display: flex;
  padding: 12px 0;
}

/* ============================================================
   EXPRESS PAYMENT BUTTONS (Stripe iframe)
   ============================================================ */

/*
  NOTE: Apple Pay / Google Pay / Amazon Pay / Link buttons render
  inside a cross-origin Stripe iframe (js.stripe.com). Your site's
  CSS CANNOT style anything inside that iframe — button colors,
  shapes, and text are controlled entirely by Stripe via the
  publicOptions passed in the iframe URL (buttonTheme, buttonType,
  buttonHeight, etc.) on the PHP/JS side where Stripe Elements is
  initialized, not via CSS.

  What we CAN style: the spacing/margins AROUND each button.
*/

.wc-block-components-express-payment {
  margin-bottom: 16px;
}

.wc-block-components-express-payment__event-buttons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wc-block-components-express-payment__event-buttons li {
  border-radius: 50px;
  overflow: hidden; /* clips the iframe's button to a pill shape if Stripe allows */
}

/* "Or" divider — matches screenshot's thin-line OR */
.wc-block-components-express-payment-continue-rule {
  display: flex;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 13px;
  font-weight: 400;
}
.wc-block-components-express-payment-continue-rule::before,
.wc-block-components-express-payment-continue-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(41, 45, 45, 0.15);
}

/* ============================================================
   PROCEED TO CHECKOUT BUTTON
   ============================================================ */

.wc-block-cart__submit-container {
  background: none !important;
  padding: 0;
  text-align: center;
}

.wc-block-cart__submit-button {
  background: var(--teal) !important;
  color: var(--off-white) !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  font-family: 'Montserrat', sans-serif;
  padding: 14px 20px !important;
  width: auto !important;
  display: block !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border-radius: 50px !important;
  text-transform: uppercase;
}
.wc-block-components-sale-badge {
display: none;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 15px !important;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0;
    text-transform: uppercase;
    background: var(--green-pill);
    color: var(--dark);
}

/* If you'd rather keep it as a solid pill button instead of a link,
   comment out the block above and uncomment this one: */
/*
.wc-block-cart__submit-button {
  background: var(--teal) !important;
  color: var(--off-white) !important;
  border-radius: 50px !important;
  font-weight: 500;
  font-size: 15px;
  padding: 14px 24px !important;
  text-decoration: none;
  width: 100% !important;
}
.wc-block-cart__submit-button:hover {
  background: var(--teal) !important;
  opacity: 0.9;
}
*/

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .wc-block-components-main {
    width: 100% !important;
  }
  .wc-block-components-sidebar {
    width: 100% !important;
  }
  .wc-block-components-sidebar-layout.wc-block-cart {
    flex-direction: column;
  }
  .wc-block-cart-items__header {
    display: none;
  }
  .wc-block-cart-items__row {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
  }
  .wc-block-cart-item__total-price-and-sale-badge-wrapper {
    align-items: center !important;
  }
  .wc-block-cart-items__row td {
    display: block;
    padding: 8px 0;
  }
  .wc-block-components-product-metadata{
    display: none;
  }
  .wc-block-cart-item__image {
    width: 25%;
    padding-right: 0 !important;
  }
  .wc-block-cart-item__product {
    width: 50%;
  }
  .wc-block-cart-item__total {
    width: 25%;
  }
  .wc-block-components-quantity-selector {
    gap: 0px;
  }
  .wc-block-cart-item__quantity {
    margin-top: 0px !importanr;
  }
  .wc-block-components-product-name {
    margin-bottom: 0px;
  }
  .wc-block-cart-item__image img {
    height: auto;
  }
}