/* WooCommerce checkout, order received and account pages in the theme's style.
   Plain (unlayered) CSS on purpose: WooCommerce's own stylesheet is unlayered, so the theme's Tailwind
   layers can't override it. Loaded after it, on WooCommerce pages only. Colours come from the theme tokens. */

.woo-shell { font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif; font-size: 1rem; line-height: 1.6; }
.woo-shell h3 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 1rem; }
.woo-shell a { color: var(--signal); }

/* Two columns on desktop: details left, order and payment right. */
@media (min-width: 1024px) {
  .woo-shell form.checkout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 0 3.5rem; align-items: start; }
  .woo-shell form.checkout > .col2-set { grid-column: 1; grid-row: 1 / span 3; }
  .woo-shell form.checkout > #order_review_heading,
  .woo-shell form.checkout > #order_review { grid-column: 2; }
  .woo-shell .col2-set .col-1, .woo-shell .col2-set .col-2 { float: none; width: 100%; }
}

.woo-shell .form-row { margin: 0 0 1rem; padding: 0; }
.woo-shell .form-row label { display: block; margin-bottom: 0.4rem; font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.woo-shell .required { color: var(--anomaly); text-decoration: none; }
.woo-shell input.input-text,
.woo-shell textarea,
.woo-shell select,
.woo-shell .select2-container .select2-selection--single {
  width: 100%; min-height: 3.25rem; padding: 0.75rem 1.1rem;
  border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); color: var(--ink);
  font: inherit; box-shadow: none;
}
.woo-shell textarea { min-height: 7.5rem; }
.woo-shell input.input-text:focus, .woo-shell textarea:focus, .woo-shell select:focus { border-color: var(--ink); outline: 2px solid var(--signal-tint); }
.woo-shell .select2-container .select2-selection--single .select2-selection__rendered { line-height: 1.75rem; padding: 0; color: var(--ink); }
.woo-shell .select2-container .select2-selection--single .select2-selection__arrow { top: 50%; transform: translateY(-50%); right: 0.75rem; }

/* Order summary and payment box as cards. */
.woo-shell #order_review,
.woo-shell .woocommerce-order,
.woo-shell .woocommerce-MyAccount-content {
  border: 1px solid var(--rule); border-radius: 1.5rem; background: var(--surface); padding: 1.75rem;
}
.woo-shell table.shop_table { border: 0; border-radius: 0; margin: 0 0 1.5rem; border-collapse: collapse; width: 100%; }
.woo-shell table.shop_table th, .woo-shell table.shop_table td { border: 0; border-bottom: 1px solid var(--rule); padding: 0.85rem 0; background: transparent; color: var(--ink); }
.woo-shell table.shop_table tfoot .order-total th, .woo-shell table.shop_table tfoot .order-total td { font-size: 1.25rem; font-weight: 700; border-bottom: 0; }
.woo-shell .wc-item-meta, .woo-shell dl.variation { margin: 0.35rem 0 0; font-size: 0.875rem; color: var(--ink-soft); }

.woo-shell #payment { background: var(--paper); border-radius: 1rem; }
.woo-shell #payment ul.payment_methods { border-bottom: 1px solid var(--rule); padding: 1.1rem; }
.woo-shell #payment div.payment_box { background: var(--surface); color: var(--ink-soft); border-radius: 12px; }
.woo-shell #payment div.payment_box::before { border-bottom-color: var(--surface); }
.woo-shell #payment div.form-row { padding: 1.1rem; }

/* Buttons. */
.woo-shell .button, .woo-shell button.button, .woo-shell #place_order, .woo-shell a.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.6rem;
  border: 0; border-radius: 999px; background: var(--ink); color: var(--paper);
  font: 600 1rem/1 "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif; text-decoration: none; cursor: pointer;
  transition: background-color .15s;
}
.woo-shell .button:hover, .woo-shell #place_order:hover { background: var(--signal); color: var(--paper); }
.woo-shell #place_order { width: 100%; background: var(--signal); }
.woo-shell #place_order:hover { background: var(--ink); }

/* Notices. */
.woo-shell .woocommerce-info, .woo-shell .woocommerce-message, .woo-shell .woocommerce-error {
  border: 1px solid var(--rule); border-left: 3px solid var(--signal); border-radius: 12px; background: var(--surface); color: var(--ink); padding: 1rem 1.25rem 1rem 3rem;
}
.woo-shell .woocommerce-error { border-left-color: var(--anomaly); }
.woo-shell .woocommerce-info::before, .woo-shell .woocommerce-message::before { color: var(--signal); }

/* Order received. */
.woo-shell ul.order_details { display: flex; flex-wrap: wrap; gap: 1rem 2rem; padding: 0; margin: 0 0 1.5rem; }
.woo-shell ul.order_details li { border: 0; margin: 0; padding: 0; font-size: 0.875rem; color: var(--ink-soft); text-transform: none; }
.woo-shell ul.order_details li strong { display: block; margin-top: 0.25rem; font-size: 1rem; color: var(--ink); }
.woo-shell .woocommerce-thankyou-order-received { font-size: 1.25rem; font-weight: 600; color: var(--signal); }
