/* ==========================================================================
   Kod Vijetnamca — WooCommerce Cart & Checkout Styles
   Design System: The Culinary Editorial (Google Stitch)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens (CSS Custom Properties)
   -------------------------------------------------------------------------- */
:root {
  --vn-primary: var(--wp--preset--color--primary, #bb0027);
  --vn-on-primary: var(--wp--preset--color--on-primary, #ffffff);
  --vn-primary-container: var(--wp--preset--color--primary-container, #ffdad6);
  --vn-secondary: var(--wp--preset--color--secondary, #785900);
  --vn-secondary-container: var(--wp--preset--color--secondary-container, #ffdea1);
  --vn-on-secondary: var(--wp--preset--color--on-secondary, #ffffff);

  --vn-surface: var(--wp--preset--color--surface, #fff8f6);
  --vn-surface-dim: var(--wp--preset--color--surface-dim, #e4d7d4);
  --vn-surface-container-lowest: var(--wp--preset--color--surface-container-lowest, #ffffff);
  --vn-surface-container-low: var(--wp--preset--color--surface-container-low, #fef1ee);
  --vn-surface-container: var(--wp--preset--color--surface-container, #f0ede8);
  --vn-surface-container-high: var(--wp--preset--color--surface-container-high, #ece5e2);
  --vn-surface-container-highest: var(--wp--preset--color--surface-container-highest, #e6dfdc);

  --vn-on-surface: var(--wp--preset--color--on-surface, #1c1c19);
  --vn-on-surface-variant: var(--wp--preset--color--on-surface-variant, #534340);
  --vn-outline: var(--wp--preset--color--outline, #857371);
  --vn-outline-variant: var(--wp--preset--color--outline-variant, #d8c2be);

  --vn-error: var(--wp--preset--color--error, #ba1a1a);
  --vn-error-container: var(--wp--preset--color--error-container, #ffdad6);

  --vn-font-heading: var(--wp--preset--font-family--heading, 'Plus Jakarta Sans', sans-serif);
  --vn-font-body: var(--wp--preset--font-family--body, 'Be Vietnam Pro', sans-serif);

  --vn-radius-sm: var(--wp--custom--border-radius--sm, 0.5rem);
  --vn-radius-md: var(--wp--custom--border-radius--md, 0.75rem);
  --vn-radius-lg: var(--wp--custom--border-radius--lg, 1rem);
  --vn-radius-xl: var(--wp--custom--border-radius--xl, 1.5rem);
  --vn-radius-pill: 9999px;

  --vn-shadow-sm: 0 1px 3px rgba(28, 28, 25, 0.06);
  --vn-shadow-md: 0 4px 12px rgba(28, 28, 25, 0.08);
  --vn-shadow-lg: 0 8px 24px rgba(28, 28, 25, 0.1);
  --vn-shadow-xl: 0 12px 40px rgba(28, 28, 25, 0.12);

  --vn-transition: 200ms cubic-bezier(0.2, 0, 0, 1);
}


/* ==========================================================================
   CLASSIC WOOCOMMERCE (Shortcode-based Cart & Checkout)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Cart Page
   -------------------------------------------------------------------------- */

/* Cart Table — remove default borders, tonal layering */
.woocommerce-cart .woocommerce table.shop_table {
  border: none;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--vn-surface-container-lowest);
  border-radius: var(--vn-radius-xl);
  box-shadow: var(--vn-shadow-sm);
  overflow: hidden;
}

.woocommerce-cart .woocommerce table.shop_table thead {
  background: var(--vn-surface-container-low);
}

.woocommerce-cart .woocommerce table.shop_table thead th {
  border: none;
  padding: 1rem 1.25rem;
  font-family: var(--vn-font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--vn-on-surface-variant);
}

.woocommerce-cart .woocommerce table.shop_table td {
  border: none;
  border-top: 1px solid var(--vn-surface-container-high);
  padding: 1.25rem;
  vertical-align: middle;
  color: var(--vn-on-surface);
  font-family: var(--vn-font-body);
}

.woocommerce-cart .woocommerce table.shop_table tr:first-child td {
  border-top: none;
}

/* Product Name */
.woocommerce-cart .woocommerce td.product-name {
  font-family: var(--vn-font-heading);
  font-weight: 600;
  font-size: 1rem;
}

.woocommerce-cart .woocommerce td.product-name a {
  color: var(--vn-on-surface);
  text-decoration: none;
  transition: color var(--vn-transition);
}

.woocommerce-cart .woocommerce td.product-name a:hover {
  color: var(--vn-primary);
}

/* Product Price */
.woocommerce-cart .woocommerce td.product-price,
.woocommerce-cart .woocommerce td.product-subtotal {
  font-family: var(--vn-font-heading);
  font-weight: 700;
  color: var(--vn-on-surface);
}

/* Product Thumbnails — rounded */
.woocommerce-cart .woocommerce td.product-thumbnail img {
  border-radius: var(--vn-radius-md);
  box-shadow: var(--vn-shadow-sm);
  width: 80px;
  height: 80px;
  object-fit: cover;
}

/* Remove Item Button — subtle, muted */
.woocommerce-cart .woocommerce a.remove {
  color: var(--vn-outline) !important;
  font-size: 1.5rem;
  font-weight: 300;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--vn-radius-sm);
  transition: all var(--vn-transition);
  background: transparent;
}

.woocommerce-cart .woocommerce a.remove:hover {
  background: var(--vn-surface-container-high) !important;
  color: var(--vn-on-surface) !important;
}

/* Quantity Input — pill-shaped +/- */
.woocommerce-cart .woocommerce .quantity {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--vn-surface-container);
  border-radius: var(--vn-radius-pill);
  padding: 0.125rem;
}

.woocommerce-cart .woocommerce .quantity .qty {
  border: none;
  background: transparent;
  width: 2.5rem;
  text-align: center;
  font-family: var(--vn-font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--vn-on-surface);
  -moz-appearance: textfield;
  appearance: textfield;
  padding: 0.375rem 0;
}

.woocommerce-cart .woocommerce .quantity .qty::-webkit-inner-spin-button,
.woocommerce-cart .woocommerce .quantity .qty::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Coupon — hidden (coupons disabled) */
.woocommerce-cart .woocommerce .coupon {
  display: none !important;
}

/* Update Cart Button — secondary style */
.woocommerce-cart .woocommerce button[name="update_cart"] {
  background: var(--vn-surface-container);
  color: var(--vn-on-surface);
  border: none;
  border-radius: var(--vn-radius-pill);
  padding: 0.75rem 2rem;
  font-family: var(--vn-font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--vn-transition);
  box-shadow: var(--vn-shadow-sm);
}

.woocommerce-cart .woocommerce button[name="update_cart"]:hover {
  background: var(--vn-surface-container-high);
  box-shadow: var(--vn-shadow-md);
}

.woocommerce-cart .woocommerce button[name="update_cart"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Actions row */
.woocommerce-cart .woocommerce .actions {
  padding: 1.25rem !important;
  border-top: none !important;
  display: flex;
  justify-content: flex-end;
  background: var(--vn-surface-container-lowest);
}

/* --------------------------------------------------------------------------
   Cart Totals
   -------------------------------------------------------------------------- */
.woocommerce-cart .cart_totals {
  background: var(--vn-surface-container-low);
  border-radius: var(--vn-radius-xl);
  padding: 2rem;
  box-shadow: var(--vn-shadow-md);
}

.woocommerce-cart .cart_totals h2 {
  font-family: var(--vn-font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--vn-on-surface);
  margin-bottom: 1.5rem;
}

.woocommerce-cart .cart_totals table {
  border: none;
  border-collapse: collapse;
}

.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td {
  border: none;
  padding: 0.875rem 0;
  font-family: var(--vn-font-body);
  color: var(--vn-on-surface);
  border-bottom: 1px solid var(--vn-surface-container-high);
}

.woocommerce-cart .cart_totals table th {
  font-weight: 500;
  color: var(--vn-on-surface-variant);
}

.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td {
  font-family: var(--vn-font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--vn-on-surface);
  border-bottom: none;
  padding-top: 1.25rem;
}

/* Proceed to Checkout Button */
.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button {
  display: block;
  width: 100%;
  background: var(--vn-primary);
  color: var(--vn-on-primary);
  border: none;
  border-radius: var(--vn-radius-xl);
  padding: 1rem 2rem;
  font-family: var(--vn-font-heading);
  font-weight: 900;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--vn-shadow-md);
  transition: all var(--vn-transition);
  margin-top: 1.5rem;
}

.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button:hover {
  box-shadow: var(--vn-shadow-lg);
  transform: translateY(-1px);
  opacity: 0.95;
}


/* ==========================================================================
   Checkout Page
   ========================================================================== */

/* --------------------------------------------------------------------------
   Checkout Form
   -------------------------------------------------------------------------- */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3 {
  font-family: var(--vn-font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--vn-on-surface);
  margin-bottom: 1.25rem;
}

/* Form rows */
.woocommerce-checkout .woocommerce form .form-row {
  margin-bottom: 1rem;
}

.woocommerce-checkout .woocommerce form .form-row label {
  font-family: var(--vn-font-body);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--vn-on-surface-variant);
  margin-bottom: 0.375rem;
  display: block;
}

.woocommerce-checkout .woocommerce form .form-row .required {
  color: var(--vn-primary);
}

/* Inputs & Selects */
.woocommerce-checkout .woocommerce form .form-row input.input-text,
.woocommerce-checkout .woocommerce form .form-row textarea,
.woocommerce-checkout .woocommerce form .form-row select,
.woocommerce-checkout .woocommerce form .form-row .select2-container .select2-selection {
  background: var(--vn-surface-container-lowest);
  border: none;
  border-radius: var(--vn-radius-md);
  padding: 0.875rem 1rem;
  font-family: var(--vn-font-body);
  font-size: 1rem;
  color: var(--vn-on-surface);
  box-shadow: inset 0 0 0 1px var(--vn-surface-container-high);
  transition: box-shadow var(--vn-transition);
  width: 100%;
  box-sizing: border-box;
}

.woocommerce-checkout .woocommerce form .form-row input.input-text:focus,
.woocommerce-checkout .woocommerce form .form-row textarea:focus,
.woocommerce-checkout .woocommerce form .form-row select:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--vn-primary);
}

.woocommerce-checkout .woocommerce form .form-row textarea {
  min-height: 6rem;
  resize: vertical;
}

/* Select2 Dropdown */
.woocommerce-checkout .select2-container--default .select2-selection--single {
  height: auto;
  min-height: 3rem;
  display: flex;
  align-items: center;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
}

.woocommerce-checkout .select2-dropdown {
  border: none;
  border-radius: var(--vn-radius-md);
  box-shadow: var(--vn-shadow-lg);
  overflow: hidden;
  background: var(--vn-surface-container-lowest);
}

.woocommerce-checkout .select2-results__option--highlighted[aria-selected] {
  background: var(--vn-primary-container) !important;
  color: var(--vn-on-surface) !important;
}

/* Coupon on checkout — also hidden */
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout .checkout_coupon {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Order Review Table
   -------------------------------------------------------------------------- */
.woocommerce-checkout #order_review_heading {
  font-family: var(--vn-font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--vn-on-surface);
  margin-bottom: 1rem;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table {
  border: none;
  border-collapse: collapse;
  background: var(--vn-surface-container-low);
  border-radius: var(--vn-radius-xl);
  overflow: hidden;
  box-shadow: var(--vn-shadow-sm);
}

.woocommerce-checkout .woocommerce-checkout-review-order-table thead th {
  border: none;
  padding: 1rem 1.25rem;
  font-family: var(--vn-font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--vn-on-surface-variant);
  background: var(--vn-surface-container);
}

.woocommerce-checkout .woocommerce-checkout-review-order-table td,
.woocommerce-checkout .woocommerce-checkout-review-order-table th {
  border: none;
  padding: 0.875rem 1.25rem;
  font-family: var(--vn-font-body);
  color: var(--vn-on-surface);
  border-bottom: 1px solid var(--vn-surface-container-high);
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot .order-total th,
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot .order-total td {
  font-family: var(--vn-font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  border-bottom: none;
  padding-top: 1.25rem;
}

/* --------------------------------------------------------------------------
   Payment Methods
   -------------------------------------------------------------------------- */
.woocommerce-checkout #payment {
  background: var(--vn-surface-container-low);
  border-radius: var(--vn-radius-xl);
  padding: 1.5rem;
  box-shadow: var(--vn-shadow-sm);
  border: none;
}

.woocommerce-checkout #payment ul.payment_methods {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  border: none;
}

.woocommerce-checkout #payment ul.payment_methods li {
  background: var(--vn-surface-container-lowest);
  border-radius: var(--vn-radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 0.5rem;
  transition: box-shadow var(--vn-transition);
}

.woocommerce-checkout #payment ul.payment_methods li:hover {
  box-shadow: var(--vn-shadow-sm);
}

.woocommerce-checkout #payment ul.payment_methods li label {
  font-family: var(--vn-font-heading);
  font-weight: 600;
  color: var(--vn-on-surface);
  cursor: pointer;
}

.woocommerce-checkout #payment div.payment_box {
  background: var(--vn-surface-container);
  border-radius: var(--vn-radius-md);
  padding: 1rem;
  margin-top: 0.75rem;
  color: var(--vn-on-surface-variant);
  font-size: 0.875rem;
}

.woocommerce-checkout #payment div.payment_box::before {
  display: none;
}

/* Place Order Button */
.woocommerce-checkout #payment #place_order {
  display: block;
  width: 100%;
  background: var(--vn-primary);
  color: var(--vn-on-primary);
  border: none;
  border-radius: var(--vn-radius-xl);
  padding: 1.125rem 2rem;
  font-family: var(--vn-font-heading);
  font-weight: 900;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: var(--vn-shadow-lg);
  transition: all var(--vn-transition);
}

.woocommerce-checkout #payment #place_order:hover {
  box-shadow: var(--vn-shadow-xl);
  transform: translateY(-1px);
  opacity: 0.95;
}

/* Terms & Conditions */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  margin-bottom: 1rem;
}

.woocommerce-checkout .woocommerce-privacy-policy-text {
  font-size: 0.8125rem;
  color: var(--vn-on-surface-variant);
}


/* ==========================================================================
   WooCommerce Notices (Errors, Messages, Info)
   ========================================================================== */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
  border: none !important;
  border-radius: var(--vn-radius-lg) !important;
  padding: 1rem 1.5rem !important;
  font-family: var(--vn-font-body);
  box-shadow: var(--vn-shadow-sm);
  margin-bottom: 1.5rem !important;
}

.woocommerce-error {
  background: var(--vn-error-container) !important;
  color: var(--vn-error) !important;
}

.woocommerce-error::before {
  color: var(--vn-error) !important;
}

.woocommerce-message {
  background: var(--vn-secondary-container) !important;
  color: var(--vn-on-surface) !important;
}

.woocommerce-message::before {
  color: var(--vn-secondary) !important;
}

.woocommerce-info {
  background: var(--vn-surface-container-low) !important;
  color: var(--vn-on-surface) !important;
}

.woocommerce-info::before {
  color: var(--vn-outline) !important;
}

/* Notice links */
.woocommerce-error a,
.woocommerce-message a,
.woocommerce-info a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ==========================================================================
   BLOCK-BASED WOOCOMMERCE (Cart & Checkout Blocks)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Cart Block
   -------------------------------------------------------------------------- */
.wp-block-woocommerce-cart {
  font-family: var(--vn-font-body);
}

/* Line items */
.wp-block-woocommerce-cart .wc-block-cart-items .wc-block-cart-items__row {
  border-bottom: 1px solid var(--vn-surface-container-high);
  padding: 1.5rem 0;
}

.wp-block-woocommerce-cart .wc-block-cart-items .wc-block-cart-items__row:last-child {
  border-bottom: none;
}

/* Product image */
.wp-block-woocommerce-cart .wc-block-cart-item__image img {
  border-radius: var(--vn-radius-md);
  box-shadow: var(--vn-shadow-sm);
}

/* Product name */
.wp-block-woocommerce-cart .wc-block-components-product-name {
  font-family: var(--vn-font-heading);
  font-weight: 600;
  color: var(--vn-on-surface);
  text-decoration: none;
}

.wp-block-woocommerce-cart .wc-block-components-product-name:hover {
  color: var(--vn-primary);
}

/* Quantity Selector — pill shape */
.wp-block-woocommerce-cart .wc-block-components-quantity-selector {
  background: var(--vn-surface-container);
  border-radius: var(--vn-radius-pill);
  border: none;
  overflow: hidden;
}

.wp-block-woocommerce-cart .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
  background: transparent;
  border: none;
  font-family: var(--vn-font-heading);
  font-weight: 700;
  color: var(--vn-on-surface);
  text-align: center;
}

.wp-block-woocommerce-cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
  background: transparent;
  border: none;
  color: var(--vn-on-surface-variant);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--vn-transition);
  padding: 0.375rem 0.625rem;
}

.wp-block-woocommerce-cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover {
  background: var(--vn-surface-container-high);
}

/* Remove link — muted */
.wp-block-woocommerce-cart .wc-block-cart-item__remove-link {
  color: var(--vn-outline);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color var(--vn-transition);
}

.wp-block-woocommerce-cart .wc-block-cart-item__remove-link:hover {
  color: var(--vn-on-surface);
}

/* Price */
.wp-block-woocommerce-cart .wc-block-components-product-price {
  font-family: var(--vn-font-heading);
  font-weight: 700;
  color: var(--vn-on-surface);
}

/* Cart Totals Sidebar */
.wp-block-woocommerce-cart .wc-block-cart__totals-title {
  font-family: var(--vn-font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--vn-on-surface);
}

.wp-block-woocommerce-cart .wc-block-components-totals-wrapper {
  border-color: var(--vn-surface-container-high);
}

.wp-block-woocommerce-cart .wc-block-components-totals-item__label {
  font-family: var(--vn-font-body);
  color: var(--vn-on-surface-variant);
}

.wp-block-woocommerce-cart .wc-block-components-totals-item__value {
  font-family: var(--vn-font-heading);
  font-weight: 700;
  color: var(--vn-on-surface);
}

.wp-block-woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wp-block-woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-weight: 800;
  font-size: 1.25rem;
}

/* Proceed to Checkout */
.wp-block-woocommerce-cart .wc-block-cart__submit-button,
.wp-block-woocommerce-cart .wc-block-components-checkout-return-to-cart-button + .wc-block-cart__submit-button {
  background: var(--vn-primary) !important;
  color: var(--vn-on-primary) !important;
  border: none !important;
  border-radius: var(--vn-radius-xl) !important;
  padding: 1rem 2rem !important;
  font-family: var(--vn-font-heading) !important;
  font-weight: 900 !important;
  font-size: 1rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  box-shadow: var(--vn-shadow-md);
  transition: all var(--vn-transition);
  width: 100%;
}

.wp-block-woocommerce-cart .wc-block-cart__submit-button:hover {
  box-shadow: var(--vn-shadow-lg);
  transform: translateY(-1px);
  opacity: 0.95;
}

/* Coupon — hidden */
.wp-block-woocommerce-cart .wc-block-components-totals-coupon {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Checkout Block
   -------------------------------------------------------------------------- */
.wp-block-woocommerce-checkout {
  font-family: var(--vn-font-body);
}

/* Section headings */
.wp-block-woocommerce-checkout .wc-block-components-checkout-step__heading {
  font-family: var(--vn-font-heading);
  font-weight: 800;
  color: var(--vn-on-surface);
}

/* Step container */
.wp-block-woocommerce-checkout .wc-block-components-checkout-step {
  border-color: var(--vn-surface-container-high);
}

/* Text inputs */
.wp-block-woocommerce-checkout .wc-block-components-text-input input[type="text"],
.wp-block-woocommerce-checkout .wc-block-components-text-input input[type="email"],
.wp-block-woocommerce-checkout .wc-block-components-text-input input[type="tel"],
.wp-block-woocommerce-checkout .wc-block-components-text-input input[type="number"],
.wp-block-woocommerce-checkout .wc-block-components-text-input input[type="password"],
.wp-block-woocommerce-checkout .wc-block-components-textarea textarea {
  background: var(--vn-surface-container-lowest);
  border: none;
  border-radius: var(--vn-radius-md);
  padding: 0.875rem 1rem;
  font-family: var(--vn-font-body);
  font-size: 1rem;
  color: var(--vn-on-surface);
  box-shadow: inset 0 0 0 1px var(--vn-surface-container-high);
  transition: box-shadow var(--vn-transition);
}

.wp-block-woocommerce-checkout .wc-block-components-text-input input:focus,
.wp-block-woocommerce-checkout .wc-block-components-textarea textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--vn-primary);
}

/* Floating labels */
.wp-block-woocommerce-checkout .wc-block-components-text-input label {
  font-family: var(--vn-font-body);
  color: var(--vn-on-surface-variant);
}

/* Combobox / Select */
.wp-block-woocommerce-checkout .wc-block-components-combobox .components-form-token-field__input-container {
  background: var(--vn-surface-container-lowest);
  border: none;
  border-radius: var(--vn-radius-md);
  box-shadow: inset 0 0 0 1px var(--vn-surface-container-high);
}

.wp-block-woocommerce-checkout .wc-block-components-combobox .components-form-token-field__input-container:focus-within {
  box-shadow: inset 0 0 0 2px var(--vn-primary);
}

/* Coupon — hidden */
.wp-block-woocommerce-checkout .wc-block-components-totals-coupon {
  display: none !important;
}

/* Order Summary */
.wp-block-woocommerce-checkout .wc-block-components-order-summary {
  border: none;
}

.wp-block-woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__image img {
  border-radius: var(--vn-radius-sm);
}

.wp-block-woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__description .wc-block-components-product-name {
  font-family: var(--vn-font-heading);
  font-weight: 600;
  color: var(--vn-on-surface);
}

/* Totals */
.wp-block-woocommerce-checkout .wc-block-components-totals-wrapper {
  border-color: var(--vn-surface-container-high);
}

.wp-block-woocommerce-checkout .wc-block-components-totals-item__label {
  color: var(--vn-on-surface-variant);
}

.wp-block-woocommerce-checkout .wc-block-components-totals-item__value {
  font-family: var(--vn-font-heading);
  font-weight: 700;
  color: var(--vn-on-surface);
}

.wp-block-woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wp-block-woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-weight: 800;
  font-size: 1.25rem;
}

/* Payment Methods */
.wp-block-woocommerce-checkout .wc-block-components-radio-control .wc-block-components-radio-control__option {
  background: var(--vn-surface-container-lowest);
  border-radius: var(--vn-radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 0.5rem;
  transition: box-shadow var(--vn-transition);
}

.wp-block-woocommerce-checkout .wc-block-components-radio-control .wc-block-components-radio-control__option:hover {
  box-shadow: var(--vn-shadow-sm);
}

.wp-block-woocommerce-checkout .wc-block-components-radio-control__input {
  accent-color: var(--vn-primary);
}

.wp-block-woocommerce-checkout .wc-block-components-radio-control__label {
  font-family: var(--vn-font-heading);
  font-weight: 600;
}

/* Place Order Button */
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button {
  display: block;
  width: 100%;
  background: var(--vn-primary) !important;
  color: var(--vn-on-primary) !important;
  border: none !important;
  border-radius: var(--vn-radius-xl) !important;
  padding: 1.125rem 2rem !important;
  font-family: var(--vn-font-heading) !important;
  font-weight: 900 !important;
  font-size: 1.125rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  cursor: pointer;
  box-shadow: var(--vn-shadow-lg);
  transition: all var(--vn-transition);
}

.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
  box-shadow: var(--vn-shadow-xl);
  transform: translateY(-1px);
  opacity: 0.95;
}

/* Privacy / Terms */
.wp-block-woocommerce-checkout .wc-block-checkout__terms {
  font-size: 0.8125rem;
  color: var(--vn-on-surface-variant);
}

/* Block notices */
.wp-block-woocommerce-checkout .wc-block-components-notice-banner,
.wp-block-woocommerce-cart .wc-block-components-notice-banner {
  border: none;
  border-radius: var(--vn-radius-lg);
  padding: 1rem 1.5rem;
  box-shadow: var(--vn-shadow-sm);
}

.wp-block-woocommerce-checkout .wc-block-components-notice-banner.is-error,
.wp-block-woocommerce-cart .wc-block-components-notice-banner.is-error {
  background: var(--vn-error-container);
  color: var(--vn-error);
}

.wp-block-woocommerce-checkout .wc-block-components-notice-banner.is-success,
.wp-block-woocommerce-cart .wc-block-components-notice-banner.is-success {
  background: var(--vn-secondary-container);
  color: var(--vn-on-surface);
}

.wp-block-woocommerce-checkout .wc-block-components-notice-banner.is-info,
.wp-block-woocommerce-cart .wc-block-components-notice-banner.is-info {
  background: var(--vn-surface-container-low);
  color: var(--vn-on-surface);
}

/* Checkbox styling */
.wp-block-woocommerce-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
  accent-color: var(--vn-primary);
}


/* ==========================================================================
   Responsive — Mobile Stack
   ========================================================================== */
@media (max-width: 768px) {
  /* Classic Cart — stack table rows */
  .woocommerce-cart .woocommerce table.shop_table,
  .woocommerce-cart .woocommerce table.shop_table thead,
  .woocommerce-cart .woocommerce table.shop_table tbody,
  .woocommerce-cart .woocommerce table.shop_table tr,
  .woocommerce-cart .woocommerce table.shop_table td {
    display: block;
    width: 100%;
  }

  .woocommerce-cart .woocommerce table.shop_table thead {
    display: none;
  }

  .woocommerce-cart .woocommerce table.shop_table tr {
    padding: 1rem;
    border-bottom: 1px solid var(--vn-surface-container-high);
  }

  .woocommerce-cart .woocommerce table.shop_table td {
    padding: 0.375rem 0;
    border-top: none;
    text-align: left;
  }

  .woocommerce-cart .woocommerce table.shop_table td::before {
    content: attr(data-title) ": ";
    font-weight: 600;
    color: var(--vn-on-surface-variant);
    font-size: 0.8125rem;
  }

  .woocommerce-cart .woocommerce table.shop_table td.product-thumbnail {
    text-align: center;
    padding-bottom: 0.75rem;
  }

  .woocommerce-cart .woocommerce table.shop_table td.product-thumbnail::before {
    display: none;
  }

  .woocommerce-cart .woocommerce table.shop_table td.product-remove {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    padding: 0;
  }

  .woocommerce-cart .woocommerce table.shop_table td.product-remove::before {
    display: none;
  }

  .woocommerce-cart .woocommerce table.shop_table tr {
    position: relative;
  }

  .woocommerce-cart .woocommerce table.shop_table .actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  /* Cart totals — full width */
  .woocommerce-cart .cart_totals {
    padding: 1.5rem;
  }

  /* Checkout — columns stack */
  .woocommerce-checkout .col2-set .col-1,
  .woocommerce-checkout .col2-set .col-2 {
    float: none;
    width: 100%;
  }

  /* Block cart/checkout already responsive via flex/grid, just minor tweaks */
  .wp-block-woocommerce-cart .wc-block-cart__submit-button {
    font-size: 0.9375rem !important;
    padding: 0.875rem 1.5rem !important;
  }

  .wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button {
    font-size: 1rem !important;
    padding: 1rem 1.5rem !important;
  }
}

/* --------------------------------------------------------------------------
   Small mobile (≤ 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .woocommerce-cart .cart_totals {
    padding: 1.25rem;
    border-radius: var(--vn-radius-lg);
  }

  .woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
  }

  .woocommerce-checkout #payment {
    padding: 1rem;
    border-radius: var(--vn-radius-lg);
  }
}


/* ==========================================================================
   My Account Page
   ========================================================================== */
.woocommerce-account .woocommerce-MyAccount-navigation {
  background: var(--vn-surface-container-low);
  border-radius: var(--vn-radius-xl);
  padding: 1rem;
  box-shadow: var(--vn-shadow-sm);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--vn-radius-md);
  color: var(--vn-on-surface);
  text-decoration: none;
  font-family: var(--vn-font-body);
  font-weight: 500;
  transition: all var(--vn-transition);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  background: var(--vn-surface-container);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  background: var(--vn-primary);
  color: var(--vn-on-primary);
  font-weight: 700;
}

/* Account form inputs */
.woocommerce-account .woocommerce form .form-row input.input-text,
.woocommerce-account .woocommerce form .form-row select {
  background: var(--vn-surface-container-lowest);
  border: none;
  border-radius: var(--vn-radius-md);
  padding: 0.875rem 1rem;
  font-family: var(--vn-font-body);
  font-size: 1rem;
  color: var(--vn-on-surface);
  box-shadow: inset 0 0 0 1px var(--vn-surface-container-high);
  transition: box-shadow var(--vn-transition);
  width: 100%;
  box-sizing: border-box;
}

.woocommerce-account .woocommerce form .form-row input.input-text:focus,
.woocommerce-account .woocommerce form .form-row select:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--vn-primary);
}

/* Account save button */
.woocommerce-account .woocommerce button.woocommerce-Button {
  background: var(--vn-primary);
  color: var(--vn-on-primary);
  border: none;
  border-radius: var(--vn-radius-lg);
  padding: 0.875rem 2rem;
  font-family: var(--vn-font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--vn-transition);
  box-shadow: var(--vn-shadow-md);
}

.woocommerce-account .woocommerce button.woocommerce-Button:hover {
  box-shadow: var(--vn-shadow-lg);
  transform: translateY(-1px);
  opacity: 0.95;
}
