/** SILVGLO Checkout Experience v5.1.8 — scoped to native WC address fields. */
body.single-product form.cart .sv516-buy-now {
  display:inline-flex;align-items:center;justify-content:center;
  min-height:var(--sv-commerce-control-height,54px);height:var(--sv-commerce-control-height,54px);
  border:1px solid #13251d;border-radius:5px;background:#fff;color:#13251d;
  font-size:var(--sv-commerce-copy,17px);font-weight:600;
  padding:0 22px;margin:0 0 12px 8px;cursor:pointer;
}
body.single-product form.cart .sv516-buy-now:hover,
body.single-product form.cart .sv516-buy-now:focus-visible {background:#f1f5f2;outline-offset:3px;}
/* WooCommerce Checkout Block: grid the address form, never the payment form. */
body.woocommerce-checkout .wc-block-components-address-form:is(.sv516-country-us,.sv516-country-sa) {
  display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:14px 12px;align-items:start;
}
body.woocommerce-checkout .wc-block-components-address-form:is(.sv516-country-us,.sv516-country-sa) > * {
  grid-column:1/-1;box-sizing:border-box;min-width:0;width:100%;max-width:100%;margin:0!important;float:none!important;
}
body.woocommerce-checkout .wc-block-components-address-form:is(.sv516-country-us,.sv516-country-sa) > :is(
 .wc-block-components-address-form__first_name,.wc-block-components-address-form__last_name) {
  grid-column:span 3;
}
body.woocommerce-checkout .wc-block-components-address-form.sv516-country-us > :is(
 .wc-block-components-address-form__city,.wc-block-components-address-form__state,.wc-block-components-address-form__postcode) {
  grid-column:span 2;
}
body.woocommerce-checkout .wc-block-components-address-form.sv516-country-sa > :is(
 .wc-block-components-address-form__city,.wc-block-components-address-form__postcode) {
  grid-column:span 3;
}
body.woocommerce-checkout .wc-block-components-address-form:is(.sv516-country-us,.sv516-country-sa) :is(input,select,.wc-block-components-combobox-control__input) {
  min-width:0;max-width:100%;box-sizing:border-box;
}
/* Classic WooCommerce checkout fallback: same native names and layout. */
body.woocommerce-checkout :is(.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper):is(.sv516-country-us,.sv516-country-sa) {
  display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px 12px;
}
body.woocommerce-checkout :is(.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper):is(.sv516-country-us,.sv516-country-sa) > .form-row {
  grid-column:1/-1;float:none!important;width:100%!important;max-width:100%!important;min-width:0;margin:0!important;
}
body.woocommerce-checkout .sv516-country-us > :is(#billing_first_name_field,#billing_last_name_field,#shipping_first_name_field,#shipping_last_name_field),
body.woocommerce-checkout .sv516-country-sa > :is(#billing_first_name_field,#billing_last_name_field,#shipping_first_name_field,#shipping_last_name_field) {grid-column:span 3!important;}
body.woocommerce-checkout .sv516-country-us > :is(#billing_city_field,#billing_state_field,#billing_postcode_field,#shipping_city_field,#shipping_state_field,#shipping_postcode_field) {grid-column:span 2!important;}
body.woocommerce-checkout .sv516-country-sa > :is(#billing_city_field,#billing_postcode_field,#shipping_city_field,#shipping_postcode_field) {grid-column:span 3!important;}
body.woocommerce-checkout :is(.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper) .form-row input,
body.woocommerce-checkout :is(.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper) .form-row select {width:100%;max-width:100%;box-sizing:border-box;}
/* Phone: avoid unusably narrow inputs and labels, respect WC country validation. */
@media(max-width:600px) {
 body.woocommerce-checkout .wc-block-components-address-form:is(.sv516-country-us,.sv516-country-sa),
 body.woocommerce-checkout :is(.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper):is(.sv516-country-us,.sv516-country-sa){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
 body.woocommerce-checkout .wc-block-components-address-form:is(.sv516-country-us,.sv516-country-sa) > *,
 body.woocommerce-checkout :is(.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper):is(.sv516-country-us,.sv516-country-sa) > .form-row{grid-column:1/-1!important;}
}

/* SILVGLO v5.1.8 — Buy Now colors and corner curvature, independent of Add to Cart.
   WooCommerce's generic .button styles use !important; scoped overrides are deliberate.
   The values are controlled only in SILVGLO Design Studio > Cart & Checkout. */
body.single-product form.cart button.sv516-buy-now,
body.single-product .woocommerce div.product form.cart button.sv516-buy-now,
body.single-product .woocommerce button.button.sv516-buy-now {
  background:var(--sv518-buy-now-bg,#C6A15F)!important;
  background-color:var(--sv518-buy-now-bg,#C6A15F)!important;
  color:var(--sv518-buy-now-text,#13251D)!important;
  border:1px solid var(--sv518-buy-now-bg,#C6A15F)!important;
  border-radius:var(--sv518-buy-now-radius,18px)!important;
  font-size:var(--sv-commerce-copy,17px)!important;
  font-weight:600!important;
  line-height:1.2!important;
  letter-spacing:0.01em!important;
  padding:0 22px!important;
  min-height:var(--sv-commerce-control-height,54px)!important;
  height:var(--sv-commerce-control-height,54px)!important;
  box-sizing:border-box!important;
  box-shadow:none!important;
  cursor:pointer;
  transition:background-color .18s ease,border-color .18s ease,filter .18s ease;
}
body.single-product form.cart button.sv516-buy-now:hover,
body.single-product form.cart button.sv516-buy-now:focus-visible,
body.single-product .woocommerce div.product form.cart button.sv516-buy-now:hover,
body.single-product .woocommerce div.product form.cart button.sv516-buy-now:focus-visible,
body.single-product .woocommerce button.button.sv516-buy-now:hover,
body.single-product .woocommerce button.button.sv516-buy-now:focus-visible {
  background:var(--sv518-buy-now-hover,#AD8844)!important;
  background-color:var(--sv518-buy-now-hover,#AD8844)!important;
  border-color:var(--sv518-buy-now-hover,#AD8844)!important;
  color:var(--sv518-buy-now-text,#13251D)!important;
}
body.single-product form.cart button.sv516-buy-now:focus-visible {
  outline:2px solid #13251D!important;
  outline-offset:3px!important;
}
@media (prefers-reduced-motion:reduce) {
  body.single-product form.cart button.sv516-buy-now { transition:none!important; }
}
