/**
 * Cart + Checkout (classic + block) — Lotomena-style cards, red CTAs, readable layout.
 */

/* ---- Page shell (matches wider flow from page.php) ---- */
.reetal-wc-flow-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.reetal-wc-flow-page .entry-content {
  max-width: none;
}

.reetal-wc-flow-page .entry-header {
  display: none;
}

/* ---- Classic cart ---- */
.woocommerce-cart .cart-collaterals .cross-sells,
.woocommerce-cart .cross-sells {
  margin-top: 2rem;
}

.woocommerce table.shop_table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td {
  border-color: #f3f4f6 !important;
  padding: 0.85rem 1rem !important;
}

.woocommerce-cart table.shop_table thead th {
  background: #fafafa;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}

.woocommerce-cart .product-thumbnail img {
  max-width: 72px;
  height: auto;
  border-radius: 6px;
}

.woocommerce-cart .coupon .input-text {
  min-height: 2.65rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 0 0.85rem;
}

.woocommerce-cart .actions .button {
  border-radius: 8px;
  font-weight: 600;
}

.woocommerce-cart .cart_totals {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.25rem 1.35rem;
  background: #fff;
}

.woocommerce-cart .cart_totals h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 1rem;
  color: #111827;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.9rem 1.25rem !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
  border-radius: 8px !important;
  background: #c1272d !important;
  color: #fff !important;
  border: none !important;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
  background: #9e1f24 !important;
  color: #fff !important;
}

/* ---- Classic checkout ---- */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout #order_review_heading {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 1rem;
  color: #111827;
}

.woocommerce-checkout .col2-set {
  display: grid;
  gap: 1.5rem 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .woocommerce-checkout .col2-set {
    grid-template-columns: 1fr 1fr;
  }
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
  width: 100%;
  max-width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.9375rem;
}

.woocommerce-checkout .form-row label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #374151;
  margin-bottom: 0.35rem;
}

.woocommerce-checkout #order_review_heading {
  margin-top: 2rem;
}

.woocommerce-checkout #order_review,
.woocommerce-checkout .woocommerce-checkout-review-order {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.25rem 1.35rem;
  background: #fff;
}

.woocommerce-checkout #payment {
  border-radius: 8px;
  background: #fafafa;
  border: 1px solid #f3f4f6;
}

.woocommerce-checkout #place_order {
  width: 100%;
  padding: 0.95rem 1.25rem !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
  border-radius: 8px !important;
  background: #c1272d !important;
  color: #fff !important;
  border: none !important;
}

.woocommerce-checkout #place_order:hover {
  background: #9e1f24 !important;
}

/* ---- WooCommerce Blocks (cart + checkout) ---- */
.wc-block-cart,
.wc-block-checkout {
  font-size: 0.9375rem;
}

.wc-block-components-sidebar-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .wc-block-components-sidebar-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
  }
}

.wc-block-components-sidebar .wc-block-components-panel,
.wc-block-checkout__sidebar .wc-block-components-totals-wrapper {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  background: #fff;
}

.wc-block-components-main .wc-block-components-panel,
.wc-block-checkout__main .wc-block-components-panel {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
  background: #fff;
}

.wc-block-components-text-input input,
.wc-block-components-textarea textarea,
.wc-block-components-select .wc-block-components-select__container {
  border-radius: 8px !important;
  border-color: #e5e7eb !important;
}

.wc-block-components-button:not(.is-link) {
  border-radius: 8px !important;
  font-weight: 700 !important;
}

.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
  background: #c1272d !important;
  color: #fff !important;
  border: none !important;
}

.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
  background: #9e1f24 !important;
  color: #fff !important;
}

.wc-block-components-checkout-step__title {
  font-weight: 800 !important;
  color: #111827 !important;
}

.wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item__label {
  color: #6b7280;
}

.wc-block-components-totals-footer-item__value {
  font-weight: 800;
  font-size: 1.15rem;
  color: #111827;
}

/* Order received */
.woocommerce-order {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  background: #fff;
  max-width: 720px;
}

.woocommerce-order-overview {
  border: none !important;
}

.woocommerce ul.order_details {
  background: #fafafa;
  border-radius: 8px;
  padding: 1rem 1.25rem;
}
