/*
 * WooCommerce Pages Component
 * Styling for My Account, Cart, Checkout — block & shortcode markup.
 */

/* ==========================================================================
   1. FORM INPUTS
   ========================================================================== */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text,
.woocommerce-page form .form-row textarea,
.woocommerce-page form .form-row select,
.woocommerce-form-login input.input-text,
.woocommerce-form-register input.input-text,
.woocommerce-EditAccountForm input.input-text,
.woocommerce-EditAccountForm select,
.woocommerce-ResetPassword input.input-text,
.wc-block-components-text-input input,
.wc-block-components-textarea,
.wc-block-components-select select {
  background-color: var(--surface-container-high, #f0e9df);
  border: none;
  border-bottom: 2px solid var(--outline-variant, #c9c7b2);
  border-radius: var(--radius-md, 0.75rem) var(--radius-md, 0.75rem) 0 0;
  padding: 0.875rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--on-surface, #1d1b17);
  transition: border-color 220ms ease, background-color 220ms ease;
  box-shadow: none;
  width: 100%;
  box-sizing: border-box;
}

/* Hover */
.woocommerce form .form-row input.input-text:hover,
.woocommerce form .form-row textarea:hover,
.woocommerce form .form-row select:hover,
.woocommerce-form-login input.input-text:hover,
.woocommerce-form-register input.input-text:hover,
.wc-block-components-text-input input:hover,
.wc-block-components-textarea:hover,
.wc-block-components-select select:hover {
  background-color: var(--surface-container, #f4f0ec);
}

/* Focus — lime bottom border */
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.woocommerce-form-login input.input-text:focus,
.woocommerce-form-register input.input-text:focus,
.woocommerce-EditAccountForm input.input-text:focus,
.woocommerce-EditAccountForm select:focus,
.woocommerce-ResetPassword input.input-text:focus,
.wc-block-components-text-input input:focus,
.wc-block-components-textarea:focus,
.wc-block-components-select select:focus {
  background-color: var(--surface-container-high, #f0e9df);
  border-bottom-color: var(--primary, #D6D964);
  outline: none;
  box-shadow: 0 2px 0 0 var(--primary, #D6D964);
}

/* Block-based input wrappers — kill default border */
.wc-block-components-text-input,
.wc-block-components-select {
  border: none !important;
  background: transparent;
}

/* Floating label colour (block checkout) */
.wc-block-components-text-input label,
.wc-block-components-select label {
  color: var(--on-surface-variant, #4a4842);
  font-weight: 500;
}

/* Password visibility toggle */
.woocommerce form .show-password-input {
  color: var(--on-surface-variant, #4a4842);
}

/* ========================================================================== */
/*  2. FORM LABELS & TYPOGRAPHY                                                */
/* ========================================================================== */

.woocommerce form .form-row label,
.woocommerce-page form .form-row label,
.woocommerce-form-login label:not(.checkbox),
.woocommerce-form-register label:not(.checkbox),
.woocommerce-EditAccountForm label:not(.checkbox),
.woocommerce-address-fields label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--on-surface, #1d1b17);
}

/* Required asterisk - subtle accent color */
.woocommerce form .form-row .required,
.woocommerce-page form .form-row .required {
  color: var(--tertiary, #1D3A24);
  font-weight: 700;
  text-decoration: none;
  border: none;
}

/* Form row spacing */
.woocommerce form .form-row,
.woocommerce-page form .form-row {
  margin-bottom: 1.25rem;
}

/* Section sub-headings (Billing, Contact info, Payment options) */
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-account-fields h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--on-surface, #1d1b17);
}

/* ========================================================================== */
/*  3. FORM WRAPPERS / CARDS                                                   */
/* ========================================================================== */

/* Login / Register / Lost password boxes */
.woocommerce form.woocommerce-form-login,
.woocommerce form.woocommerce-form-register,
.woocommerce form.lost_reset_password {
  background-color: var(--surface-container-lowest, #ffffff);
  border: none;
  border-radius: var(--radius-lg, 1rem);
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(29, 27, 23, 0.06);
  margin-top: 1rem;
  margin-bottom: 2rem;
}

/* Lost password link */
.woocommerce-LostPassword a,
.woocommerce-LostPassword.lost_password a {
  color: var(--link-color, #606200);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}

.woocommerce-LostPassword a:hover {
  border-bottom-color: var(--link-color, #606200);
}

/* Remember me checkbox */
.woocommerce-form-login__rememberme,
.woocommerce-form__label-for-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0;
  font-size: 0.9375rem;
  color: var(--on-surface, #1d1b17);
  cursor: pointer;
}

/* Block-based: Cart Totals & Checkout Order Summary card */
.wc-block-components-totals-wrapper,
.wc-block-cart__sidebar,
.wc-block-checkout__sidebar,
.wp-block-woocommerce-checkout-order-summary-block,
.wp-block-woocommerce-cart-order-summary-block {
  background-color: var(--surface-container-lowest, #ffffff);
  border: none !important;
  border-radius: var(--radius-lg, 1rem);
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(29, 27, 23, 0.06);
}

/* Sidebar headings (Cart Totals, Order Summary) */
.wc-block-components-totals-wrapper > h2,
.wp-block-woocommerce-checkout-order-summary-block h2,
.wp-block-woocommerce-cart-order-summary-block h2,
.cart_totals h2,
.cross-sells > h2 {
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--on-surface-variant, #4a4842);
  margin-bottom: 1rem;
}

/* Block checkout: section spacing & headings */
.wc-block-components-checkout-step,
.wp-block-woocommerce-checkout-contact-information-block,
.wp-block-woocommerce-checkout-billing-address-block,
.wp-block-woocommerce-checkout-shipping-address-block,
.wp-block-woocommerce-checkout-payment-block {
  margin-bottom: 2rem;
}

.wc-block-components-checkout-step__title,
.wc-block-components-title.wc-block-components-checkout-step__title {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--on-surface, #1d1b17);
}

/* ========================================================================== */
/*  4. CART TABLE & LINE ITEMS                                                 */
/* ========================================================================== */

/* Block cart table header (PRODUCT / TOTAL labels) */
.wc-block-cart-items__header,
.wc-block-cart__main thead {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--on-surface-variant, #4a4842);
  font-weight: 500;
  border-bottom: 1px solid var(--outline-variant, #c9c7b2);
  padding-bottom: 0.75rem;
}

/* Cart line items: row spacing + soft separator */
.wc-block-cart-items__row,
.wc-block-cart__main tbody tr {
  border-bottom: 1px solid rgba(201, 199, 178, 0.4);
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

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

/* Product image in cart */
.wc-block-cart-item__image img,
.wc-block-cart-item__image a {
  border-radius: var(--radius-md, 0.75rem);
  overflow: hidden;
}

/* Product name link */
.wc-block-cart-item__product .wc-block-components-product-name,
.wc-block-components-product-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--on-surface, #1d1b17);
  text-decoration: none;
}

.wc-block-components-product-name:hover {
  color: var(--link-color, #606200);
}

/* Product metadata (description) */
.wc-block-cart-item__product .wc-block-components-product-metadata {
  font-size: 0.875rem;
  color: var(--on-surface-variant, #4a4842);
  margin-top: 0.25rem;
}

/* Quantity selector pill (+/- buttons) */
.wc-block-components-quantity-selector {
  background-color: var(--surface-container-high, #f0e9df);
  border: none;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  height: 2.5rem;
}

.wc-block-components-quantity-selector__button {
  background: transparent;
  border: none;
  color: var(--on-surface, #1d1b17);
  width: 2.25rem;
  height: 2.5rem;
  font-size: 1.125rem;
  cursor: pointer;
  transition: background-color 200ms ease;
}

.wc-block-components-quantity-selector__button:hover:not(:disabled) {
  background-color: var(--primary, #D6D964);
}

.wc-block-components-quantity-selector__button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.wc-block-components-quantity-selector__input {
  background: transparent;
  border: none;
  text-align: center;
  width: 2rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--on-surface, #1d1b17);
  -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;
}

/* Remove (trash) button */
.wc-block-cart-item__remove-link {
  background: transparent;
  border: none;
  color: var(--on-surface-variant, #4a4842);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 9999px;
  transition: background-color 200ms ease, color 200ms ease;
}

.wc-block-cart-item__remove-link:hover {
  background-color: rgba(29, 27, 23, 0.06);
  color: var(--on-surface, #1d1b17);
}

/* Item line totals (right column) */
.wc-block-cart-item__total {
  font-weight: 600;
  color: var(--on-surface, #1d1b17);
}

/* Totals item rows (Subtotal, Tax, Estimated total) */
.wc-block-components-totals-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.625rem 0;
  font-size: 0.9375rem;
  color: var(--on-surface, #1d1b17);
}

/* Final total row — bigger & bold */
.wc-block-components-totals-footer-item,
.wc-block-components-totals-item.wc-block-components-totals-footer-item {
  font-size: 1.5rem;
  font-weight: 600;
  border-top: 1px solid var(--outline-variant, #c9c7b2);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

/* Coupon dropdown panel (Add coupons) */
.wc-block-components-totals-coupon,
.wp-block-woocommerce-cart-order-summary-coupon-form-block {
  border-top: 1px solid var(--outline-variant, #c9c7b2);
  border-bottom: 1px solid var(--outline-variant, #c9c7b2);
  padding: 0.75rem 0;
  margin: 0.5rem 0;
}

.wc-block-components-panel__button {
  background: transparent;
  border: none;
  font-size: 0.9375rem;
  color: var(--on-surface-variant, #4a4842);
  cursor: pointer;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Proceed to checkout button — main CTA (full width, lime) */
.wc-block-cart__submit-button,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
  width: 100% !important;
  background-color: var(--primary, #D6D964) !important;
  color: var(--on-surface, #1d1b17) !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 1rem 1.5rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 2px 8px rgba(214, 217, 100, 0.3);
}

.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(214, 217, 100, 0.4);
}

/* ========================================================================== */
/*  5. EMPTY CART STATE                                                        */
/* ========================================================================== */

/* Empty cart wrapper */
.wc-block-cart__empty-cart__title,
.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title,
.cart-empty {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--on-surface, #1d1b17);
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

/* Empty cart sad face icon — soften it */
.wp-block-woocommerce-empty-cart-block > svg,
.wp-block-woocommerce-empty-cart-block > img,
.wc-block-cart__empty-cart__image {
  display: block;
  margin: 2rem auto 1rem;
  max-width: 5rem;
  height: auto;
  opacity: 0.6;
}

/* Decorative dots row (• • •) below empty cart */
.wp-block-woocommerce-empty-cart-block hr,
.wp-block-woocommerce-empty-cart-block .wp-block-separator {
  border: none;
  margin: 1.5rem auto;
  max-width: 6rem;
  opacity: 0.5;
}

/* Cross-sells / New in store heading */
.cross-sells > h2,
.wc-block-cart__main + .wp-block-heading,
.wp-block-woocommerce-empty-cart-block h2,
.wp-block-woocommerce-empty-cart-block .wp-block-heading {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--on-surface, #1d1b17);
  margin: 2.5rem 0 1.5rem;
}

/* ============= 6. MY ACCOUNT DASHBOARD ============= */

/* My Account two-column wrapper */
.woocommerce-account .woocommerce-MyAccount-navigation {
  width: 25%;
  float: left;
  padding-right: 2rem;
}

.woocommerce-account .woocommerce-MyAccount-content {
  width: 75%;
  float: right;
}

@media (max-width: 768px) {
  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content {
    width: 100%;
    float: none;
    padding-right: 0;
    margin-bottom: 1.5rem;
  }
}

/* Navigation list (Dashboard / Orders / Addresses / Account / Logout) */
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: var(--surface-container-lowest, #ffffff);
  border-radius: var(--radius-lg, 1rem);
  box-shadow: 0 2px 12px rgba(29, 27, 23, 0.06);
  overflow: hidden;
}

.woocommerce-MyAccount-navigation ul li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(201, 199, 178, 0.3);
}

.woocommerce-MyAccount-navigation ul li:last-child {
  border-bottom: none;
}

/* Navigation links */
.woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 0.875rem 1.25rem;
  color: var(--on-surface, #1d1b17);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background-color 200ms ease;
}

.woocommerce-MyAccount-navigation ul li a:hover {
  background-color: var(--surface-container, #f4f0ec);
  color: var(--link-color, #606200);
}

/* Active nav item */
.woocommerce-MyAccount-navigation ul li.is-active a {
  background-color: var(--primary, #D6D964);
  color: var(--on-surface, #1d1b17);
  font-weight: 600;
}

/* ============= 7. BLOCK CHECKOUT NOTICES & GUEST MESSAGE ============= */

/* Block-based notice (errors, warnings, info) */
.wc-block-components-notice-banner {
  border-radius: var(--radius-md, 0.75rem);
  border: none;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
}

.wc-block-components-notice-banner.is-error {
  background-color: rgba(186, 26, 26, 0.06);
  color: #ba1a1a;
  border-left: 4px solid #ba1a1a;
}

.wc-block-components-notice-banner.is-success {
  background-color: rgba(29, 58, 36, 0.06);
  color: var(--tertiary, #1D3A24);
  border-left: 4px solid var(--tertiary, #1D3A24);
}

.wc-block-components-notice-banner.is-info,
.wc-block-components-notice-banner.is-warning {
  background-color: rgba(142, 213, 225, 0.15);
  color: var(--on-surface, #1d1b17);
  border-left: 4px solid var(--secondary, #8ED5E1);
}

/* Guest checkout helper text (under email field) */
.wc-block-checkout-contact-information-block + p,
.wc-block-components-checkout-step__description {
  font-size: 0.875rem;
  color: var(--on-surface-variant, #4a4842);
  margin-top: 0.5rem;
}

/* ============= 8. CART FIXES ============= */

/* Quantity input — transparent (matches pill) */
.wc-block-components-quantity-selector input,
.wc-block-components-quantity-selector__input,
.wc-block-components-quantity-selector input[type="number"] {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.wc-block-components-quantity-selector input:focus {
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Coupon dropdown — remove harsh borders that cut the card */
.wc-block-components-totals-coupon,
.wp-block-woocommerce-cart-order-summary-coupon-form-block,
.wp-block-woocommerce-checkout-order-summary-coupon-form-block {
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  padding: 0.25rem 0 !important;
  margin: 0.25rem 0 !important;
}

/* Coupon button (closed state) */
.wc-block-components-totals-coupon .wc-block-components-panel__button,
.wc-block-components-panel > h2 button {
  padding: 0.625rem 0;
}

/* Soften the Total separator — subtle line instead of harsh */
.wc-block-components-totals-footer-item,
.wc-block-components-totals-item.wc-block-components-totals-footer-item {
  border-top: 1px solid rgba(201, 199, 178, 0.5) !important;
  padding-top: 1.25rem !important;
  margin-top: 0.75rem !important;
}

/* Remove any inner panel/wrapper borders that cut the card visually */
.wc-block-components-totals-wrapper {
  border-top: none !important;
  border-bottom: none !important;
}

/* Better card padding for cart sidebar */
.wp-block-woocommerce-cart-order-summary-block,
.wp-block-woocommerce-checkout-order-summary-block {
  padding: 1.75rem !important;
}

/* Card heading inside the totals card — less heavy */
.wp-block-woocommerce-cart-order-summary-heading-block h2,
.wp-block-woocommerce-cart-order-summary-block h2:first-of-type {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface-variant, #4a4842);
  font-weight: 500;
}

/* Strip ALL inner shadows/backgrounds — only outer card keeps shadow */
.wp-block-woocommerce-cart-order-summary-block *,
.wp-block-woocommerce-checkout-order-summary-block * {
  box-shadow: none !important;
}

/* Inner blocks: transparent, no shadows, no extra padding */
.wp-block-woocommerce-cart-order-summary-block .wc-block-components-totals-wrapper,
.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-wrapper,
.wp-block-woocommerce-cart-order-summary-totals-block,
.wp-block-woocommerce-checkout-order-summary-totals-block {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* Restore shadow on the outer card itself (only) */
.wp-block-woocommerce-cart-order-summary-block,
.wp-block-woocommerce-checkout-order-summary-block {
  box-shadow: 0 2px 12px rgba(29, 27, 23, 0.06) !important;
  background-color: var(--surface-container-lowest, #ffffff) !important;
  border-radius: var(--radius-lg, 1rem) !important;
}

/* Totals item rows — no individual backgrounds */
.wc-block-components-totals-item,
.wc-block-components-totals-footer-item {
  background: transparent !important;
  border-left: none !important;
  border-right: none !important;
}

/* Coupon panel — fully transparent */
.wc-block-components-totals-coupon,
.wp-block-woocommerce-cart-order-summary-coupon-form-block,
.wp-block-woocommerce-checkout-order-summary-coupon-form-block {
  background: transparent !important;
}

/* ============= 9. CARD STRUCTURE FIX ============= */

/* The OUTER wrapper is .wp-block-woocommerce-cart-totals-block.
   The .wp-block-woocommerce-cart-order-summary-block is INSIDE it,
   so we move shadow/bg to the outer and strip the inner. */

/* OUTER card (cart) — receives shadow + background */
.wp-block-woocommerce-cart-totals-block {
  background-color: var(--surface-container-lowest, #ffffff);
  border-radius: var(--radius-lg, 1rem);
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(29, 27, 23, 0.06);
}

/* INNER summary block (cart) — fully transparent */
.wp-block-woocommerce-cart-totals-block .wp-block-woocommerce-cart-order-summary-block {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* Same pattern for CHECKOUT */
.wp-block-woocommerce-checkout-totals-block,
.wp-block-woocommerce-checkout-totals {
  background-color: var(--surface-container-lowest, #ffffff);
  border-radius: var(--radius-lg, 1rem);
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(29, 27, 23, 0.06);
}

.wp-block-woocommerce-checkout-totals-block .wp-block-woocommerce-checkout-order-summary-block,
.wp-block-woocommerce-checkout-totals .wp-block-woocommerce-checkout-order-summary-block {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* ============= 10. COUPON FORM (when open) ============= */

/* Coupon form layout */
.wc-block-components-totals-coupon__form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  align-items: stretch;
}

/* Coupon code input */
.wc-block-components-totals-coupon__form .wc-block-components-text-input {
  flex: 1;
  margin: 0;
}

.wc-block-components-totals-coupon__form input {
  background-color: var(--surface-container, #f4f0ec) !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 0.625rem 1rem !important;
  font-size: 0.875rem !important;
  height: auto !important;
}

/* Apply button — secondary tone (not lime, that's reserved for primary CTA) */
.wc-block-components-totals-coupon__button,
.wc-block-components-totals-coupon button[type="submit"] {
  background-color: var(--surface-container-high, #f0e9df) !important;
  color: var(--on-surface, #1d1b17) !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 0.5rem 1.25rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  white-space: nowrap;
  box-shadow: none !important;
  transition: background-color 200ms ease;
  cursor: pointer;
}

.wc-block-components-totals-coupon__button:hover {
  background-color: var(--primary, #D6D964) !important;
}

/* ============= 11. COUPON FORM REFINEMENT ============= */

/* Input takes most of the width */
.wc-block-components-totals-coupon__form .wc-block-components-text-input {
  flex: 1 1 auto;
  min-width: 0;
}

/* Input field itself — match button height */
.wc-block-components-totals-coupon__form input {
  height: 2.5rem !important;
  line-height: 1 !important;
  padding: 0 1rem !important;
  width: 100%;
  box-sizing: border-box;
}

/* Button — compact, same height as input */
.wc-block-components-totals-coupon__button,
.wc-block-components-totals-coupon button[type="submit"] {
  flex: 0 0 auto;
  height: 2.5rem !important;
  line-height: 1 !important;
  padding: 0 1rem !important;
  font-size: 0.8125rem !important;
}

/* Disabled button — better readable color */
.wc-block-components-totals-coupon__button:disabled,
.wc-block-components-totals-coupon button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Reset the text-input wrapper inside coupon form (no margins, full width) */
.wc-block-components-totals-coupon__form > .wc-block-components-text-input {
  margin: 0 !important;
  padding: 0 !important;
}

/* Hide floating label inside coupon (placeholder is enough) */
.wc-block-components-totals-coupon__form .wc-block-components-text-input label {
  display: none;
}

/* ============= 12. CHECKOUT FIELDS - SOFT SHADOW ============= */

/* All field wrappers - white card, soft shadow, no border */
.wp-block-woocommerce-checkout .wc-block-components-text-input,
.wp-block-woocommerce-checkout .wc-block-components-select,
.wp-block-woocommerce-checkout .wc-block-components-combobox,
.wc-block-components-form .wc-block-components-text-input,
.wc-block-components-form .wc-block-components-select,
.wc-block-components-form .wc-block-components-combobox {
  background-color: #ffffff !important;
  border: none !important;
  border-radius: 0.875rem !important;
  box-shadow: 0 1px 3px rgba(29,27,23,0.06), 0 1px 2px rgba(29,27,23,0.04) !important;
  transition: box-shadow 220ms ease;
}

/* Inner input/select - transparent */
.wp-block-woocommerce-checkout .wc-block-components-text-input input,
.wp-block-woocommerce-checkout .wc-block-components-select select,
.wp-block-woocommerce-checkout .wc-block-components-combobox input,
.wc-block-components-form .wc-block-components-text-input input,
.wc-block-components-form .wc-block-components-select select,
.wc-block-components-form .wc-block-components-combobox input {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Hover - elevated shadow */
.wp-block-woocommerce-checkout .wc-block-components-text-input:hover,
.wp-block-woocommerce-checkout .wc-block-components-select:hover,
.wp-block-woocommerce-checkout .wc-block-components-combobox:hover,
.wc-block-components-form .wc-block-components-text-input:hover,
.wc-block-components-form .wc-block-components-select:hover {
  box-shadow: 0 4px 12px rgba(29,27,23,0.08), 0 2px 4px rgba(29,27,23,0.05) !important;
}

/* Focus - lime glow ring */
.wp-block-woocommerce-checkout .wc-block-components-text-input:focus-within,
.wp-block-woocommerce-checkout .wc-block-components-text-input.is-active,
.wp-block-woocommerce-checkout .wc-block-components-select:focus-within,
.wp-block-woocommerce-checkout .wc-block-components-combobox:focus-within,
.wc-block-components-form .wc-block-components-text-input:focus-within,
.wc-block-components-form .wc-block-components-select:focus-within,
.wc-block-components-form .wc-block-components-combobox:focus-within {
  box-shadow: 0 0 0 4px rgba(214,217,100,0.30), 0 1px 3px rgba(29,27,23,0.06) !important;
}

/* Floating labels */
.wp-block-woocommerce-checkout .wc-block-components-text-input label,
.wp-block-woocommerce-checkout .wc-block-components-select label,
.wp-block-woocommerce-checkout .wc-block-components-combobox label {
  color: var(--on-surface-variant, #4a4842) !important;
  font-weight: 400 !important;
}

.wp-block-woocommerce-checkout .wc-block-components-text-input.is-active label,
.wp-block-woocommerce-checkout .wc-block-components-select.is-active label,
.wp-block-woocommerce-checkout .wc-block-components-combobox.is-active label {
  color: var(--on-surface, #1d1b17) !important;
  font-weight: 500 !important;
}

/* ============= 13. COUPON FORM (cart + checkout) ============= */

/* Wrapper inside coupon - reset (override checkout-wide rule) */
.wc-block-components-totals-coupon .wc-block-components-text-input {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

/* Coupon form layout */
.wc-block-components-totals-coupon__form {
  display: flex !important;
  gap: 0.5rem !important;
  align-items: stretch !important;
  margin-top: 0.75rem !important;
}

.wc-block-components-totals-coupon__form > .wc-block-components-text-input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

/* Coupon input - pill style, beige */
.wc-block-components-totals-coupon__form input {
  background-color: var(--surface-container, #f4f0ec) !important;
  border: none !important;
  border-radius: 9999px !important;
  height: 2.5rem !important;
  line-height: 1 !important;
  padding: 0 1rem !important;
  font-size: 0.875rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
}

/* Coupon Apply button - compact pill, secondary tone */
.wc-block-components-totals-coupon__button,
.wc-block-components-totals-coupon button[type="submit"] {
  flex: 0 0 auto !important;
  background-color: var(--surface-container-high, #f0e9df) !important;
  color: var(--on-surface, #1d1b17) !important;
  border: none !important;
  border-radius: 9999px !important;
  height: 2.5rem !important;
  line-height: 1 !important;
  padding: 0 1.25rem !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: background-color 200ms ease;
}

.wc-block-components-totals-coupon__button:hover:not(:disabled) {
  background-color: var(--primary, #D6D964) !important;
}

.wc-block-components-totals-coupon__button:disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
}

/* Hide floating label inside coupon */
.wc-block-components-totals-coupon__form .wc-block-components-text-input label {
  display: none !important;
}

/* ============= 12B. COUNTRY/STATE FIX ============= */

/* Country & State wrappers */
.wp-block-woocommerce-checkout .wc-block-components-country-input,
.wp-block-woocommerce-checkout .wc-block-components-state-input,
.wc-block-components-form .wc-block-components-country-input,
.wc-block-components-form .wc-block-components-state-input {
  background-color: #ffffff !important;
  border: none !important;
  border-radius: 0.875rem !important;
  box-shadow: 0 1px 3px rgba(29,27,23,0.06), 0 1px 2px rgba(29,27,23,0.04) !important;
  transition: box-shadow 220ms ease;
}

/* Inner wrappers - kill thin borders */
.wp-block-woocommerce-checkout .wc-block-components-country-input *,
.wp-block-woocommerce-checkout .wc-block-components-state-input *,
.wc-block-components-form .wc-block-components-country-input *,
.wc-block-components-form .wc-block-components-state-input * {
  border-color: transparent !important;
}

/* Hover - same elevated shadow */
.wp-block-woocommerce-checkout .wc-block-components-country-input:hover,
.wp-block-woocommerce-checkout .wc-block-components-state-input:hover,
.wc-block-components-form .wc-block-components-country-input:hover,
.wc-block-components-form .wc-block-components-state-input:hover {
  box-shadow: 0 4px 12px rgba(29,27,23,0.08), 0 2px 4px rgba(29,27,23,0.05) !important;
}

/* Focus - lime glow */
.wp-block-woocommerce-checkout .wc-block-components-country-input:focus-within,
.wp-block-woocommerce-checkout .wc-block-components-state-input:focus-within,
.wp-block-woocommerce-checkout .wc-block-components-country-input.is-active,
.wp-block-woocommerce-checkout .wc-block-components-state-input.is-active,
.wc-block-components-form .wc-block-components-country-input:focus-within,
.wc-block-components-form .wc-block-components-state-input:focus-within {
  box-shadow: 0 0 0 4px rgba(214,217,100,0.30), 0 1px 3px rgba(29,27,23,0.06) !important;
}

/* Inner inputs/selects - transparent */
.wp-block-woocommerce-checkout .wc-block-components-country-input input,
.wp-block-woocommerce-checkout .wc-block-components-country-input select,
.wp-block-woocommerce-checkout .wc-block-components-state-input input,
.wp-block-woocommerce-checkout .wc-block-components-state-input select,
.wc-block-components-form .wc-block-components-country-input input,
.wc-block-components-form .wc-block-components-country-input select,
.wc-block-components-form .wc-block-components-state-input input,
.wc-block-components-form .wc-block-components-state-input select {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Country/State labels - same as text fields */
.wp-block-woocommerce-checkout .wc-block-components-country-input label,
.wp-block-woocommerce-checkout .wc-block-components-state-input label,
.wc-block-components-form .wc-block-components-country-input label,
.wc-block-components-form .wc-block-components-state-input label {
  color: var(--on-surface-variant, #4a4842) !important;
  font-weight: 400 !important;
}

.wp-block-woocommerce-checkout .wc-block-components-country-input.is-active label,
.wp-block-woocommerce-checkout .wc-block-components-state-input.is-active label {
  color: var(--on-surface, #1d1b17) !important;
  font-weight: 500 !important;
}

/* ============= 12C. FIELD CONSISTENCY FIX ============= */

/* Force consistent padding & box-sizing on ALL field wrappers */
.wp-block-woocommerce-checkout .wc-block-components-text-input,
.wp-block-woocommerce-checkout .wc-block-components-select,
.wp-block-woocommerce-checkout .wc-block-components-combobox,
.wp-block-woocommerce-checkout .wc-block-components-country-input,
.wp-block-woocommerce-checkout .wc-block-components-state-input {
  box-sizing: border-box !important;
  min-height: 3rem !important;
  position: relative;
}

/* Inner inputs/selects - consistent padding */
.wp-block-woocommerce-checkout .wc-block-components-text-input input,
.wp-block-woocommerce-checkout .wc-block-components-select select,
.wp-block-woocommerce-checkout .wc-block-components-combobox input,
.wp-block-woocommerce-checkout .wc-block-components-country-input input,
.wp-block-woocommerce-checkout .wc-block-components-country-input select,
.wp-block-woocommerce-checkout .wc-block-components-state-input input,
.wp-block-woocommerce-checkout .wc-block-components-state-input select {
  padding: 1rem 0.875rem 0.375rem !important;
  height: 3rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  font-size: 0.875rem !important;
}

/* Floating labels - consistent positioning */
.wp-block-woocommerce-checkout .wc-block-components-text-input label,
.wp-block-woocommerce-checkout .wc-block-components-select label,
.wp-block-woocommerce-checkout .wc-block-components-country-input label,
.wp-block-woocommerce-checkout .wc-block-components-state-input label {
  left: 0.875rem !important;
  font-size: 0.875rem !important;
}

/* Active labels - lifted, smaller */
.wp-block-woocommerce-checkout .wc-block-components-text-input.is-active label,
.wp-block-woocommerce-checkout .wc-block-components-select.is-active label,
.wp-block-woocommerce-checkout .wc-block-components-country-input.is-active label,
.wp-block-woocommerce-checkout .wc-block-components-state-input.is-active label {
  font-size: 0.6875rem !important;
}

/* Address form - restore grid gap between fields */
.wp-block-woocommerce-checkout .wc-block-components-address-form {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0.75rem !important;
}

/* Full-width fields span both columns */
.wp-block-woocommerce-checkout .wc-block-components-address-form .wc-block-components-country-input,
.wp-block-woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__address_1,
.wp-block-woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__address_2 {
  grid-column: 1 / -1;
}

/* ============= 14. LOGIN/ACCOUNT - SHADOW ============= */

.woocommerce-form-login input.input-text,
.woocommerce-form-register input.input-text,
.woocommerce-EditAccountForm input.input-text,
.woocommerce-EditAccountForm select,
.woocommerce-ResetPassword input.input-text,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  background-color: #ffffff !important;
  border: none !important;
  border-radius: 0.875rem !important;
  padding: 0.75rem 0.875rem !important;
  height: 3rem !important;
  font-size: 0.875rem !important;
}

/* Add shadow + transition (separate rule to fit char limit) */
.woocommerce-form-login input.input-text,
.woocommerce-form-register input.input-text,
.woocommerce-EditAccountForm input.input-text,
.woocommerce-EditAccountForm select,
.woocommerce-ResetPassword input.input-text,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  box-shadow: 0 1px 3px rgba(29,27,23,0.06), 0 1px 2px rgba(29,27,23,0.04) !important;
  transition: box-shadow 220ms ease;
}

/* Hover - elevated shadow */
.woocommerce-form-login input.input-text:hover,
.woocommerce-form-register input.input-text:hover,
.woocommerce-EditAccountForm input.input-text:hover,
.woocommerce form .form-row input.input-text:hover,
.woocommerce form .form-row select:hover {
  box-shadow: 0 4px 12px rgba(29,27,23,0.08), 0 2px 4px rgba(29,27,23,0.05) !important;
}

/* Focus - lime glow */
.woocommerce-form-login input.input-text:focus,
.woocommerce-form-register input.input-text:focus,
.woocommerce-EditAccountForm input.input-text:focus,
.woocommerce-EditAccountForm select:focus,
.woocommerce-ResetPassword input.input-text:focus,
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(214,217,100,0.30), 0 1px 3px rgba(29,27,23,0.06) !important;
  background-color: #ffffff !important;
}

/* Login/register form wrapper - cleaner card */
.woocommerce form.woocommerce-form-login,
.woocommerce form.woocommerce-form-register,
.woocommerce form.lost_reset_password {
  border: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  max-width: 480px;
}

/* Labels - cleaner typography */
.woocommerce-form-login label:not(.checkbox),
.woocommerce-form-register label:not(.checkbox),
.woocommerce-EditAccountForm label:not(.checkbox) {
  font-size: 0.8125rem !important;
  font-weight: 500;
  margin-bottom: 0.375rem !important;
  color: var(--on-surface, #1d1b17);
}

/* ============= 15. LOGIN/ACCOUNT BUTTONS ============= */

.woocommerce-form-login button[type="submit"],
.woocommerce-form-register button[type="submit"],
.woocommerce-EditAccountForm button[type="submit"],
.woocommerce-ResetPassword button[type="submit"] {
  width: 100% !important;
  background-color: var(--primary, #D6D964) !important;
  color: var(--on-surface, #1d1b17) !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 0.875rem 1.5rem !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(214, 217, 100, 0.3);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

/* Hover - lift effect */
.woocommerce-form-login button[type="submit"]:hover,
.woocommerce-form-register button[type="submit"]:hover,
.woocommerce-EditAccountForm button[type="submit"]:hover,
.woocommerce-ResetPassword button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(214, 217, 100, 0.4);
}

/* Remember me - cleaner spacing */
.woocommerce-form-login__rememberme {
  margin: 1rem 0 1.25rem !important;
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.woocommerce-form-login__rememberme input[type="checkbox"] {
  width: 1rem !important;
  height: 1rem !important;
  margin: 0;
  accent-color: var(--primary, #D6D964);
  cursor: pointer;
}

/* a11y: breadcrumb contrast WCAG 1.4.3 */
.woocommerce .woocommerce-breadcrumb,
.woocommerce .woocommerce-breadcrumb a{color:#6a6a6a;}
