/* Craft Art Prints — Commerce Forms & Notices v0.4.9
   Presentation only. WooCommerce/WoodMart/gateways retain markup and behavior. */
body.caps-commerce-ui{
  --caps-commerce-paper:#fbfaf7;
  --caps-commerce-panel:#fff;
  --caps-commerce-soft:#f6f3ee;
  --caps-commerce-line:#d8d4cd;
  --caps-commerce-line-strong:#c8c2b9;
  --caps-commerce-ink:#152d39;
  --caps-commerce-text:#42555e;
  --caps-commerce-muted:#6b797f;
  --caps-commerce-wine:#7a3f56;
  --caps-commerce-sage:#6f7d70;
  --caps-commerce-blue:#35586a;
  --caps-commerce-clay:#bf7a59;
}



/* ---------- Compact cart / checkout progress header ----------
   WoodMart owns the checkout-step markup; CAP only compresses its presentation. */
body.caps-commerce-ui.caps-commerce-cart .page-title,
body.caps-commerce-ui.caps-commerce-empty-cart .page-title,
body.caps-commerce-ui.caps-commerce-checkout .page-title,
body.caps-commerce-ui.caps-commerce-order-pay .page-title,
body.caps-commerce-ui.caps-commerce-order-received .page-title{
  min-height:52px!important;
  height:52px!important;
  max-height:52px!important;
  padding:0!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:var(--caps-commerce-paper)!important;
  border-top:0!important;
  border-bottom:1px solid var(--caps-commerce-line)!important;
  box-shadow:none!important;
}
body.caps-commerce-ui.caps-commerce-cart .page-title>.container,
body.caps-commerce-ui.caps-commerce-empty-cart .page-title>.container,
body.caps-commerce-ui.caps-commerce-checkout .page-title>.container,
body.caps-commerce-ui.caps-commerce-order-pay .page-title>.container,
body.caps-commerce-ui.caps-commerce-order-received .page-title>.container,
body.caps-commerce-ui.caps-commerce-cart .page-title>.container-fluid,
body.caps-commerce-ui.caps-commerce-empty-cart .page-title>.container-fluid,
body.caps-commerce-ui.caps-commerce-checkout .page-title>.container-fluid,
body.caps-commerce-ui.caps-commerce-order-pay .page-title>.container-fluid,
body.caps-commerce-ui.caps-commerce-order-received .page-title>.container-fluid{
  min-height:52px!important;
  height:52px!important;
  max-height:52px!important;
  padding-top:0!important;
  padding-bottom:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
body.caps-commerce-ui.caps-commerce-cart .wd-checkout-steps,
body.caps-commerce-ui.caps-commerce-empty-cart .wd-checkout-steps,
body.caps-commerce-ui.caps-commerce-checkout .wd-checkout-steps,
body.caps-commerce-ui.caps-commerce-order-pay .wd-checkout-steps,
body.caps-commerce-ui.caps-commerce-order-received .wd-checkout-steps,
body.caps-commerce-ui.caps-commerce-cart .woodmart-checkout-steps,
body.caps-commerce-ui.caps-commerce-empty-cart .woodmart-checkout-steps,
body.caps-commerce-ui.caps-commerce-checkout .woodmart-checkout-steps,
body.caps-commerce-ui.caps-commerce-order-pay .woodmart-checkout-steps,
body.caps-commerce-ui.caps-commerce-order-received .woodmart-checkout-steps{
  width:auto!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
}
body.caps-commerce-ui :is(.wd-checkout-steps,.woodmart-checkout-steps) ul{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-wrap:nowrap!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
body.caps-commerce-ui :is(.wd-checkout-steps,.woodmart-checkout-steps) li{
  display:flex!important;
  align-items:center!important;
  margin:0!important;
  padding:0!important;
  color:var(--caps-commerce-muted)!important;
  font-size:14px!important;
  font-weight:650!important;
  line-height:1.2!important;
  letter-spacing:.01em!important;
  text-transform:none!important;
  white-space:nowrap!important;
}
body.caps-commerce-ui :is(.wd-checkout-steps,.woodmart-checkout-steps) li>a,
body.caps-commerce-ui :is(.wd-checkout-steps,.woodmart-checkout-steps) li>span{
  color:inherit!important;
  font:inherit!important;
  letter-spacing:inherit!important;
  text-transform:none!important;
  text-decoration:none!important;
}
body.caps-commerce-ui :is(.wd-checkout-steps,.woodmart-checkout-steps) li.step-active{
  color:var(--caps-commerce-ink)!important;
  font-weight:750!important;
}
body.caps-commerce-ui :is(.wd-checkout-steps,.woodmart-checkout-steps) li.step-active>a>span,
body.caps-commerce-ui :is(.wd-checkout-steps,.woodmart-checkout-steps) li.step-active>span{
  padding-bottom:5px!important;
  border-bottom:2px solid var(--caps-commerce-wine)!important;
}
body.caps-commerce-ui :is(.wd-checkout-steps,.woodmart-checkout-steps) li.step-inactive>a:hover{
  color:var(--caps-commerce-wine)!important;
}
body.caps-commerce-ui :is(.wd-checkout-steps,.woodmart-checkout-steps) li:not(:last-child)::after{
  margin:0 13px!important;
  color:#9aa3a7!important;
  font-size:14px!important;
  font-weight:500!important;
  line-height:1!important;
  opacity:.9!important;
}
body.caps-commerce-ui.caps-commerce-cart .main-page-wrapper,
body.caps-commerce-ui.caps-commerce-empty-cart .main-page-wrapper,
body.caps-commerce-ui.caps-commerce-checkout .main-page-wrapper,
body.caps-commerce-ui.caps-commerce-order-pay .main-page-wrapper,
body.caps-commerce-ui.caps-commerce-order-received .main-page-wrapper{
  padding-top:18px!important;
}

/* ---------- Shared type + field language ---------- */
body.caps-commerce-ui .woocommerce form .form-row,
body.caps-commerce-ui .wc-block-components-text-input,
body.caps-commerce-ui .wc-block-components-combobox{
  margin-bottom:18px;
}
body.caps-commerce-ui .woocommerce form .form-row label,
body.caps-commerce-ui .woocommerce form .form-row legend,
body.caps-commerce-ui .wc-block-components-form .wc-block-components-text-input label,
body.caps-commerce-ui .wc-block-components-combobox .wc-block-components-combobox-control label{
  color:var(--caps-commerce-ink)!important;
  font-size:12px!important;
  font-weight:750!important;
  letter-spacing:.025em;
  line-height:1.35!important;
}
body.caps-commerce-ui .woocommerce form .form-row .required{
  color:var(--caps-commerce-wine)!important;
  text-decoration:none!important;
}
body.caps-commerce-ui .woocommerce form .input-text:not(.qty),
body.caps-commerce-ui .woocommerce form input[type=email],
body.caps-commerce-ui .woocommerce form input[type=password],
body.caps-commerce-ui .woocommerce form input[type=tel],
body.caps-commerce-ui .woocommerce form input[type=text]:not(.qty),
body.caps-commerce-ui .woocommerce form input[type=number]:not(.qty),
body.caps-commerce-ui .woocommerce form select,
body.caps-commerce-ui .woocommerce form textarea,
body.caps-commerce-ui .select2-container .select2-selection--single,
body.caps-commerce-ui .wc-block-components-text-input input,
body.caps-commerce-ui .wc-block-components-combobox .wc-block-components-combobox-control input,
body.caps-commerce-ui .wc-block-components-address-form select{
  border:1px solid var(--caps-commerce-line-strong)!important;
  border-radius:0!important;
  background:#fff!important;
  color:var(--caps-commerce-ink)!important;
  box-shadow:none!important;
}
body.caps-commerce-ui .woocommerce form .input-text:not(.qty),
body.caps-commerce-ui .woocommerce form input[type=email],
body.caps-commerce-ui .woocommerce form input[type=password],
body.caps-commerce-ui .woocommerce form input[type=tel],
body.caps-commerce-ui .woocommerce form input[type=text]:not(.qty),
body.caps-commerce-ui .woocommerce form input[type=number]:not(.qty),
body.caps-commerce-ui .woocommerce form select{
  min-height:48px!important;
  padding:0 14px!important;
  font-size:15px!important;
}
body.caps-commerce-ui .woocommerce form textarea{
  min-height:112px!important;
  padding:12px 14px!important;
  line-height:1.55!important;
}
body.caps-commerce-ui .woocommerce form .input-text:focus,
body.caps-commerce-ui .woocommerce form input:focus,
body.caps-commerce-ui .woocommerce form select:focus,
body.caps-commerce-ui .woocommerce form textarea:focus,
body.caps-commerce-ui .wc-block-components-text-input input:focus,
body.caps-commerce-ui .wc-block-components-combobox .wc-block-components-combobox-control input:focus{
  border-color:var(--caps-commerce-blue)!important;
  outline:2px solid rgba(53,88,106,.13)!important;
  outline-offset:0!important;
}
body.caps-commerce-ui .select2-container .select2-selection--single{
  height:48px!important;
}
body.caps-commerce-ui .select2-container .select2-selection--single .select2-selection__rendered{
  padding:0 38px 0 14px!important;
  line-height:46px!important;
  color:var(--caps-commerce-ink)!important;
}
body.caps-commerce-ui .select2-container .select2-selection--single .select2-selection__arrow{
  height:46px!important;
}
body.caps-commerce-ui input[type=checkbox],
body.caps-commerce-ui input[type=radio]{accent-color:var(--caps-commerce-wine);}
body.caps-commerce-ui .woocommerce form .form-row.woocommerce-invalid .input-text,
body.caps-commerce-ui .woocommerce form .form-row.woocommerce-invalid select{
  border-color:var(--caps-commerce-wine)!important;
  box-shadow:inset 4px 0 0 var(--caps-commerce-wine)!important;
}
body.caps-commerce-ui .woocommerce form .form-row.woocommerce-validated .input-text,
body.caps-commerce-ui .woocommerce form .form-row.woocommerce-validated select{
  border-color:#aab6aa!important;
}
body.caps-commerce-ui .woocommerce-password-strength{
  margin-top:7px;
  padding:8px 10px;
  border:1px solid var(--caps-commerce-line);
  background:var(--caps-commerce-soft);
  color:var(--caps-commerce-text);
  font-size:12px;
  font-weight:700;
}

/* ---------- Notices: visible, calm, unmistakable ---------- */
body.caps-commerce-ui .woocommerce-error,
body.caps-commerce-ui .woocommerce-info,
body.caps-commerce-ui .woocommerce-message,
body.caps-commerce-ui .woocommerce-notice,
body.caps-commerce-ui .wc-block-components-notice-banner{
  position:relative;
  margin:0 0 22px!important;
  padding:15px 18px 15px 20px!important;
  border:1px solid var(--caps-commerce-line)!important;
  border-left-width:4px!important;
  border-radius:0!important;
  background:#fff!important;
  color:var(--caps-commerce-text)!important;
  box-shadow:0 8px 24px rgba(21,45,57,.055)!important;
  font-size:14px!important;
  line-height:1.55!important;
}
body.caps-commerce-ui .woocommerce-error,
body.caps-commerce-ui .wc-block-components-notice-banner.is-error{border-left-color:var(--caps-commerce-wine)!important;}
body.caps-commerce-ui .woocommerce-message,
body.caps-commerce-ui .woocommerce-notice--success,
body.caps-commerce-ui .wc-block-components-notice-banner.is-success{border-left-color:var(--caps-commerce-sage)!important;}
body.caps-commerce-ui .woocommerce-info,
body.caps-commerce-ui .wc-block-components-notice-banner.is-info{border-left-color:var(--caps-commerce-blue)!important;}
body.caps-commerce-ui .woocommerce-error::before,
body.caps-commerce-ui .woocommerce-info::before,
body.caps-commerce-ui .woocommerce-message::before{display:none!important;}
body.caps-commerce-ui .woocommerce-error li{margin:0 0 4px!important;}
body.caps-commerce-ui .woocommerce-error li:last-child{margin-bottom:0!important;}
body.caps-commerce-ui .woocommerce-error a,
body.caps-commerce-ui .woocommerce-info a,
body.caps-commerce-ui .woocommerce-message a,
body.caps-commerce-ui .wc-block-components-notice-banner a{
  color:var(--caps-commerce-wine)!important;
  font-weight:750!important;
  text-decoration-thickness:1px!important;
  text-underline-offset:3px!important;
}
body.caps-commerce-ui .woocommerce-message .button,
body.caps-commerce-ui .woocommerce-info .button{
  margin-left:16px!important;
  padding:0!important;
  min-height:0!important;
  border:0!important;
  background:transparent!important;
  color:var(--caps-commerce-wine)!important;
  box-shadow:none!important;
}

/* ---------- Native Woo tables ---------- */
body.caps-commerce-ui.caps-commerce-cart .woocommerce table.shop_table,
body.caps-commerce-ui.caps-commerce-checkout .woocommerce table.shop_table,
body.caps-commerce-ui[class*="caps-commerce-account"] .woocommerce table.shop_table,
body.caps-commerce-ui .woocommerce-orders-table,
body.caps-commerce-ui .woocommerce-table--order-details{
  width:100%!important;
  border:1px solid var(--caps-commerce-line)!important;
  border-collapse:collapse!important;
  border-radius:0!important;
  background:var(--caps-commerce-panel)!important;
  box-shadow:none!important;
}
body.caps-commerce-ui .woocommerce table.shop_table th,
body.caps-commerce-ui .woocommerce table.shop_table td,
body.caps-commerce-ui .woocommerce-orders-table th,
body.caps-commerce-ui .woocommerce-orders-table td,
body.caps-commerce-ui .woocommerce-table--order-details th,
body.caps-commerce-ui .woocommerce-table--order-details td{
  padding:15px 16px!important;
  border:0!important;
  border-bottom:1px solid #e6e2dc!important;
  color:var(--caps-commerce-text)!important;
  vertical-align:middle!important;
}
body.caps-commerce-ui .woocommerce table.shop_table thead th,
body.caps-commerce-ui .woocommerce-orders-table thead th,
body.caps-commerce-ui .woocommerce-table--order-details thead th{
  background:var(--caps-commerce-soft)!important;
  color:var(--caps-commerce-ink)!important;
  font-size:11px!important;
  font-weight:850!important;
  letter-spacing:.075em!important;
  text-transform:uppercase!important;
}
body.caps-commerce-ui .woocommerce table.shop_table tr:last-child>td,
body.caps-commerce-ui .woocommerce-orders-table tr:last-child>td,
body.caps-commerce-ui .woocommerce-table--order-details tr:last-child>td{border-bottom:0!important;}
body.caps-commerce-ui .woocommerce table.shop_table a:not(.button){color:var(--caps-commerce-ink)!important;text-decoration:none!important;}
body.caps-commerce-ui .woocommerce table.shop_table a:not(.button):hover{color:var(--caps-commerce-wine)!important;}

/* ---------- Buttons: only transactional surfaces, never product CTA ownership ---------- */
body.caps-commerce-ui.caps-commerce-cart .woocommerce .button,
body.caps-commerce-ui.caps-commerce-checkout .woocommerce .button,
body.caps-commerce-ui[class*="caps-commerce-account"] .woocommerce .button,
body.caps-commerce-ui.caps-commerce-woo-form-page .woocommerce .button,
body.caps-commerce-ui .wc-block-cart__submit-button,
body.caps-commerce-ui .wc-block-components-checkout-place-order-button{
  min-height:46px!important;
  padding:0 20px!important;
  border:1px solid var(--caps-commerce-ink)!important;
  border-radius:0!important;
  background:var(--caps-commerce-ink)!important;
  color:#fff!important;
  box-shadow:none!important;
  font-size:12px!important;
  font-weight:800!important;
  letter-spacing:.055em!important;
  line-height:44px!important;
  text-transform:uppercase!important;
  transition:background .16s ease,border-color .16s ease,color .16s ease!important;
}
body.caps-commerce-ui.caps-commerce-cart .woocommerce .button:hover,
body.caps-commerce-ui.caps-commerce-checkout .woocommerce .button:hover,
body.caps-commerce-ui[class*="caps-commerce-account"] .woocommerce .button:hover,
body.caps-commerce-ui.caps-commerce-woo-form-page .woocommerce .button:hover,
body.caps-commerce-ui .wc-block-cart__submit-button:hover,
body.caps-commerce-ui .wc-block-components-checkout-place-order-button:hover{
  border-color:var(--caps-commerce-wine)!important;
  background:var(--caps-commerce-wine)!important;
  color:#fff!important;
}
body.caps-commerce-ui .woocommerce .button:disabled,
body.caps-commerce-ui .woocommerce .button.disabled{
  opacity:.48!important;
  cursor:not-allowed!important;
}

/* ---------- Cart ---------- */
body.caps-commerce-ui.caps-commerce-cart .woocommerce-cart-form,
body.caps-commerce-ui.caps-commerce-empty-cart .woocommerce{
  width:min(1220px,100%);
  margin-inline:auto;
}
body.caps-commerce-ui.caps-commerce-cart .woocommerce-cart-form table.cart .product-thumbnail img{
  width:84px!important;
  height:84px!important;
  object-fit:contain!important;
  padding:5px;
  border:1px solid #e2ddd5;
  background:#fff;
}
body.caps-commerce-ui.caps-commerce-cart .woocommerce-cart-form table.cart .product-name a{
  color:var(--caps-commerce-ink)!important;
  font-weight:750!important;
}
body.caps-commerce-ui.caps-commerce-cart .woocommerce .quantity .qty{
  width:68px!important;
  min-height:42px!important;
  padding:0 6px!important;
  border:1px solid var(--caps-commerce-line-strong)!important;
  border-radius:0!important;
  background:#fff!important;
  color:var(--caps-commerce-ink)!important;
  box-shadow:none!important;
  text-align:center!important;
}
body.caps-commerce-ui.caps-commerce-cart .woocommerce-cart-form .actions{
  padding:18px!important;
  background:var(--caps-commerce-soft)!important;
}
body.caps-commerce-ui.caps-commerce-cart .woocommerce-cart-form .coupon{
  display:flex!important;
  align-items:stretch!important;
  gap:8px!important;
}
body.caps-commerce-ui.caps-commerce-cart .woocommerce-cart-form .coupon .input-text{
  min-width:180px!important;
  min-height:46px!important;
  margin:0!important;
  border:1px solid var(--caps-commerce-line-strong)!important;
  border-radius:0!important;
  background:#fff!important;
}
body.caps-commerce-ui.caps-commerce-cart .cart-collaterals .cart_totals{
  padding:28px!important;
  border:1px solid var(--caps-commerce-line)!important;
  border-top:4px solid var(--caps-commerce-wine)!important;
  background:#fff!important;
  box-shadow:0 14px 36px rgba(21,45,57,.07)!important;
}
body.caps-commerce-ui.caps-commerce-cart .cart-collaterals .cart_totals h2{
  margin:0 0 18px!important;
  color:var(--caps-commerce-ink)!important;
  font-size:24px!important;
  font-weight:680!important;
  letter-spacing:-.02em!important;
}
body.caps-commerce-ui.caps-commerce-empty-cart .cart-empty,
body.caps-commerce-ui.caps-commerce-empty-cart .wc-empty-cart-message{
  max-width:760px;
  margin:44px auto 22px!important;
  text-align:center;
}
body.caps-commerce-ui.caps-commerce-empty-cart .return-to-shop{text-align:center;}

/* ---------- Checkout ---------- */
body.caps-commerce-ui.caps-commerce-checkout .woocommerce-checkout{
  --caps-checkout-gap:34px;
}
/* Keep WoodMart/Woo compact quantity steppers compact on checkout.
   The shared full-size field treatment intentionally excludes .qty so the
   numeric value cannot be clipped by horizontal field padding. */
body.caps-commerce-ui.caps-commerce-checkout .woocommerce-checkout-review-order .quantity .qty,
body.caps-commerce-ui.caps-commerce-checkout table.shop_table .quantity .qty{
  width:32px!important;
  min-width:32px!important;
  min-height:38px!important;
  height:38px!important;
  padding:0!important;
  border:1px solid var(--caps-commerce-line-strong)!important;
  border-radius:0!important;
  background:#fff!important;
  color:var(--caps-commerce-ink)!important;
  box-shadow:none!important;
  line-height:36px!important;
  text-align:center!important;
  text-indent:0!important;
  -webkit-text-fill-color:var(--caps-commerce-ink)!important;
  opacity:1!important;
}
body.caps-commerce-ui.caps-commerce-checkout .woocommerce-billing-fields,
body.caps-commerce-ui.caps-commerce-checkout .woocommerce-shipping-fields,
body.caps-commerce-ui.caps-commerce-checkout .woocommerce-additional-fields{
  margin-bottom:28px;
}
body.caps-commerce-ui.caps-commerce-checkout .woocommerce-billing-fields>h3,
body.caps-commerce-ui.caps-commerce-checkout .woocommerce-shipping-fields>h3,
body.caps-commerce-ui.caps-commerce-checkout #order_review_heading{
  margin:0 0 20px!important;
  padding:0 0 12px!important;
  border-bottom:1px solid var(--caps-commerce-line)!important;
  color:var(--caps-commerce-ink)!important;
  font-size:22px!important;
  font-weight:680!important;
  letter-spacing:-.018em!important;
}
body.caps-commerce-ui.caps-commerce-checkout .woocommerce-checkout-review-order{
  padding:26px!important;
  border:1px solid var(--caps-commerce-line)!important;
  border-top:4px solid var(--caps-commerce-wine)!important;
  background:#fff!important;
  box-shadow:0 14px 36px rgba(21,45,57,.07)!important;
}
body.caps-commerce-ui.caps-commerce-checkout #payment,
body.caps-commerce-ui.caps-commerce-order-pay #payment{
  margin-top:22px!important;
  border:1px solid var(--caps-commerce-line)!important;
  border-radius:0!important;
  background:var(--caps-commerce-soft)!important;
  box-shadow:none!important;
}
body.caps-commerce-ui.caps-commerce-checkout #payment ul.payment_methods,
body.caps-commerce-ui.caps-commerce-order-pay #payment ul.payment_methods{
  padding:18px!important;
  border-bottom:1px solid var(--caps-commerce-line)!important;
}
body.caps-commerce-ui.caps-commerce-checkout #payment .payment_box,
body.caps-commerce-ui.caps-commerce-order-pay #payment .payment_box{
  margin:12px 0!important;
  padding:14px!important;
  border:1px solid #ddd8d0!important;
  border-radius:0!important;
  background:#fff!important;
  color:var(--caps-commerce-text)!important;
}
body.caps-commerce-ui.caps-commerce-checkout #payment .payment_box::before,
body.caps-commerce-ui.caps-commerce-order-pay #payment .payment_box::before{display:none!important;}
body.caps-commerce-ui.caps-commerce-checkout #place_order,
body.caps-commerce-ui.caps-commerce-order-pay #place_order{
  width:100%!important;
  min-height:52px!important;
  background:var(--caps-commerce-wine)!important;
  border-color:var(--caps-commerce-wine)!important;
  line-height:50px!important;
}
body.caps-commerce-ui.caps-commerce-checkout .woocommerce-privacy-policy-text,
body.caps-commerce-ui.caps-commerce-checkout .woocommerce-terms-and-conditions-wrapper{
  color:var(--caps-commerce-muted)!important;
  font-size:12px!important;
  line-height:1.55!important;
}

/* ---------- Account / authentication ---------- */
body.caps-commerce-ui[class*="caps-commerce-account"] .woocommerce-MyAccount-navigation{
  padding:0!important;
  border:1px solid var(--caps-commerce-line)!important;
  background:var(--caps-commerce-soft)!important;
}
body.caps-commerce-ui[class*="caps-commerce-account"] .woocommerce-MyAccount-navigation ul{
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
body.caps-commerce-ui[class*="caps-commerce-account"] .woocommerce-MyAccount-navigation li{
  margin:0!important;
  border-bottom:1px solid var(--caps-commerce-line)!important;
}
body.caps-commerce-ui[class*="caps-commerce-account"] .woocommerce-MyAccount-navigation li:last-child{border-bottom:0!important;}
body.caps-commerce-ui[class*="caps-commerce-account"] .woocommerce-MyAccount-navigation a{
  display:block!important;
  padding:13px 16px!important;
  color:var(--caps-commerce-text)!important;
  text-decoration:none!important;
  font-size:13px!important;
  font-weight:700!important;
}
body.caps-commerce-ui[class*="caps-commerce-account"] .woocommerce-MyAccount-navigation li.is-active a{
  box-shadow:inset 4px 0 0 var(--caps-commerce-wine)!important;
  background:#fff!important;
  color:var(--caps-commerce-wine)!important;
}
body.caps-commerce-ui[class*="caps-commerce-account"] .woocommerce-MyAccount-content{
  min-width:0;
  color:var(--caps-commerce-text);
}
body.caps-commerce-ui.caps-commerce-account-auth .woocommerce-form-login,
body.caps-commerce-ui.caps-commerce-account-auth .woocommerce-form-register,
body.caps-commerce-ui.caps-commerce-account-lost-password .woocommerce-ResetPassword,
body.caps-commerce-ui.caps-commerce-woo-form-page .woocommerce-form{
  padding:28px!important;
  border:1px solid var(--caps-commerce-line)!important;
  border-top:4px solid var(--caps-commerce-wine)!important;
  border-radius:0!important;
  background:#fff!important;
  box-shadow:0 14px 36px rgba(21,45,57,.06)!important;
}
body.caps-commerce-ui .woocommerce-Address,
body.caps-commerce-ui .woocommerce-customer-details address{
  padding:20px!important;
  border:1px solid var(--caps-commerce-line)!important;
  border-radius:0!important;
  background:var(--caps-commerce-soft)!important;
  color:var(--caps-commerce-text)!important;
  line-height:1.7!important;
}
body.caps-commerce-ui .woocommerce-Address-title h2,
body.caps-commerce-ui .woocommerce-order-details__title,
body.caps-commerce-ui .woocommerce-column__title{
  color:var(--caps-commerce-ink)!important;
  font-size:21px!important;
  font-weight:680!important;
  letter-spacing:-.015em!important;
}

/* ---------- Order confirmation / transactional states ---------- */
body.caps-commerce-ui.caps-commerce-order-received .woocommerce-order-overview{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0!important;
  margin:24px 0 30px!important;
  padding:0!important;
  border:1px solid var(--caps-commerce-line)!important;
  background:#fff!important;
}
body.caps-commerce-ui.caps-commerce-order-received .woocommerce-order-overview li{
  min-width:0!important;
  margin:0!important;
  padding:16px!important;
  border:0!important;
  border-right:1px solid var(--caps-commerce-line)!important;
  color:var(--caps-commerce-muted)!important;
  font-size:10px!important;
  letter-spacing:.07em!important;
}
body.caps-commerce-ui.caps-commerce-order-received .woocommerce-order-overview li:last-child{border-right:0!important;}
body.caps-commerce-ui.caps-commerce-order-received .woocommerce-order-overview strong{
  display:block!important;
  margin-top:5px!important;
  color:var(--caps-commerce-ink)!important;
  font-size:14px!important;
  letter-spacing:0!important;
  text-transform:none!important;
}

/* ---------- Woo Blocks parity ---------- */
body.caps-commerce-ui .wc-block-cart,
body.caps-commerce-ui .wc-block-checkout{
  color:var(--caps-commerce-text);
}
body.caps-commerce-ui .wc-block-components-sidebar,
body.caps-commerce-ui .wc-block-checkout__order-notes,
body.caps-commerce-ui .wc-block-components-totals-wrapper{
  border-color:var(--caps-commerce-line)!important;
}
body.caps-commerce-ui .wc-block-components-order-summary,
body.caps-commerce-ui .wc-block-components-totals-wrapper{
  background:#fff;
}
body.caps-commerce-ui .wc-block-components-product-name{
  color:var(--caps-commerce-ink)!important;
  font-weight:750!important;
  text-decoration:none!important;
}
body.caps-commerce-ui .wc-block-components-quantity-selector{
  border:1px solid var(--caps-commerce-line-strong)!important;
  border-radius:0!important;
}
body.caps-commerce-ui .wc-block-components-checkout-step__heading h2,
body.caps-commerce-ui .wc-block-components-title{
  color:var(--caps-commerce-ink)!important;
  font-weight:680!important;
  letter-spacing:-.015em!important;
}

/* ---------- Admin-only signed preview navigator ---------- */
.caps-commerce-review-nav{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:999999;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:8px 14px;
  width:min(760px,calc(100vw - 36px));
  padding:12px 14px;
  border:1px solid #cfc9c0;
  border-top:4px solid var(--caps-commerce-wine,#7a3f56);
  background:rgba(255,255,255,.98);
  color:#314852;
  box-shadow:0 14px 42px rgba(21,45,57,.18);
  font-size:11px;
  line-height:1.35;
}
.caps-commerce-review-nav>strong{
  color:#152d39;
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.caps-commerce-review-links{display:flex;flex-wrap:wrap;gap:6px 12px;}
.caps-commerce-review-links a{color:#7a3f56!important;font-weight:750;text-decoration:none!important;}
.caps-commerce-review-links a:hover{text-decoration:underline!important;text-underline-offset:3px;}
.caps-commerce-review-note{grid-column:1/-1;color:#748087;font-size:10px;}

/* ---------- Responsive ---------- */
@media(max-width:900px){
  body.caps-commerce-ui.caps-commerce-order-received .woocommerce-order-overview{grid-template-columns:repeat(2,minmax(0,1fr));}
  body.caps-commerce-ui.caps-commerce-order-received .woocommerce-order-overview li:nth-child(2){border-right:0!important;}
  body.caps-commerce-ui.caps-commerce-order-received .woocommerce-order-overview li:nth-child(-n+2){border-bottom:1px solid var(--caps-commerce-line)!important;}
}
@media(max-width:768px){

  body.caps-commerce-ui.caps-commerce-cart .page-title,
  body.caps-commerce-ui.caps-commerce-empty-cart .page-title,
  body.caps-commerce-ui.caps-commerce-checkout .page-title,
  body.caps-commerce-ui.caps-commerce-order-pay .page-title,
  body.caps-commerce-ui.caps-commerce-order-received .page-title,
  body.caps-commerce-ui.caps-commerce-cart .page-title>.container,
  body.caps-commerce-ui.caps-commerce-empty-cart .page-title>.container,
  body.caps-commerce-ui.caps-commerce-checkout .page-title>.container,
  body.caps-commerce-ui.caps-commerce-order-pay .page-title>.container,
  body.caps-commerce-ui.caps-commerce-order-received .page-title>.container{
    min-height:48px!important;
    height:48px!important;
    max-height:48px!important;
  }
  body.caps-commerce-ui :is(.wd-checkout-steps,.woodmart-checkout-steps) li{
    font-size:11.5px!important;
    letter-spacing:0!important;
  }
  body.caps-commerce-ui :is(.wd-checkout-steps,.woodmart-checkout-steps) li.step-active>a>span,
  body.caps-commerce-ui :is(.wd-checkout-steps,.woodmart-checkout-steps) li.step-active>span{
    padding-bottom:4px!important;
  }
  body.caps-commerce-ui :is(.wd-checkout-steps,.woodmart-checkout-steps) li:not(:last-child)::after{
    margin:0 7px!important;
    font-size:11px!important;
  }
  body.caps-commerce-ui.caps-commerce-cart .main-page-wrapper,
  body.caps-commerce-ui.caps-commerce-empty-cart .main-page-wrapper,
  body.caps-commerce-ui.caps-commerce-checkout .main-page-wrapper,
  body.caps-commerce-ui.caps-commerce-order-pay .main-page-wrapper,
  body.caps-commerce-ui.caps-commerce-order-received .main-page-wrapper{
    padding-top:16px!important;
  }

  body.caps-commerce-ui .woocommerce table.shop_table_responsive tr,
  body.caps-commerce-ui .woocommerce-page table.shop_table_responsive tr{
    margin-bottom:14px!important;
    border:1px solid var(--caps-commerce-line)!important;
    background:#fff!important;
  }
  body.caps-commerce-ui .woocommerce table.shop_table_responsive tr td,
  body.caps-commerce-ui .woocommerce-page table.shop_table_responsive tr td{
    min-height:44px!important;
    padding:11px 13px!important;
    border-bottom:1px solid #e7e3dd!important;
    text-align:right!important;
  }
  body.caps-commerce-ui .woocommerce table.shop_table_responsive tr td:last-child,
  body.caps-commerce-ui .woocommerce-page table.shop_table_responsive tr td:last-child{border-bottom:0!important;}
  body.caps-commerce-ui.caps-commerce-cart .woocommerce-cart-form .coupon{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    width:100%!important;
  }
  body.caps-commerce-ui.caps-commerce-cart .woocommerce-cart-form .coupon .input-text{min-width:0!important;width:100%!important;}
  body.caps-commerce-ui.caps-commerce-cart .cart-collaterals .cart_totals,
  body.caps-commerce-ui.caps-commerce-checkout .woocommerce-checkout-review-order{padding:20px!important;}
  .caps-commerce-review-nav{right:10px;bottom:10px;width:calc(100vw - 20px);grid-template-columns:1fr;}
  .caps-commerce-review-note{grid-column:1;}
}
@media(max-width:520px){
  body.caps-commerce-ui .woocommerce-error,
  body.caps-commerce-ui .woocommerce-info,
  body.caps-commerce-ui .woocommerce-message,
  body.caps-commerce-ui .woocommerce-notice,
  body.caps-commerce-ui .wc-block-components-notice-banner{
    padding:13px 14px 13px 16px!important;
    font-size:13px!important;
  }
  body.caps-commerce-ui.caps-commerce-cart .woocommerce-cart-form .coupon{grid-template-columns:1fr!important;}
  body.caps-commerce-ui.caps-commerce-cart .woocommerce-cart-form .coupon .button{width:100%!important;}
  body.caps-commerce-ui.caps-commerce-account-auth .woocommerce-form-login,
  body.caps-commerce-ui.caps-commerce-account-auth .woocommerce-form-register,
  body.caps-commerce-ui.caps-commerce-account-lost-password .woocommerce-ResetPassword,
  body.caps-commerce-ui.caps-commerce-woo-form-page .woocommerce-form{padding:20px!important;}
  body.caps-commerce-ui.caps-commerce-order-received .woocommerce-order-overview{grid-template-columns:1fr;}
  body.caps-commerce-ui.caps-commerce-order-received .woocommerce-order-overview li{
    border-right:0!important;
    border-bottom:1px solid var(--caps-commerce-line)!important;
  }
  body.caps-commerce-ui.caps-commerce-order-received .woocommerce-order-overview li:last-child{border-bottom:0!important;}
  .caps-commerce-review-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px;}
}
