/* =============================================================
   Shopify-Style One Page Checkout — checkout.css
   ============================================================= */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --sfc-teal:       #5c4f41;
  --sfc-teal-light: #fefaf1;
  --sfc-teal-mid:   #5c4f41;
  --sfc-teal-dark:  #000000e6;
  --sfc-text:       #2C2C2C;
  --sfc-muted:      #6b7280;
  --sfc-border:     #e5e7eb;
  --sfc-bg:         #ffffff;
  --sfc-white:      #ffffff;
  --sfc-green:      #16a34a;
  --sfc-red:        #5c4f41;
  --sfc-radius:     8px;
  --sfc-shadow:     0 1px 3px rgba(0,0,0,.08);
  --sfc-shadow-md:  0 4px 20px rgba(0,0,0,.08);
  --sfc-font:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---- Reset ---- */
html.sfc-body, body.sfc-body {
  margin: 0; padding: 0;
  background: var(--sfc-bg);
  font-family: var(--sfc-font);
  font-size: 14px;
  color: var(--sfc-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.sfc-body * { box-sizing: border-box; }
body.sfc-body a { color: var(--sfc-teal); }

/* Force-hide theme header, footer, sidebar, and WC coupon/login notices */
body.sfc-body header.site-header,
body.sfc-body #masthead,
body.sfc-body #site-header,
body.sfc-body .site-header,
body.sfc-body nav.main-navigation,
body.sfc-body #primary-menu,
body.sfc-body footer.site-footer,
body.sfc-body #colophon,
body.sfc-body .site-footer,
body.sfc-body #secondary,
body.sfc-body .widget-area,
body.sfc-body .woocommerce-info.wc-memberships-message,
body.sfc-body .woocommerce-form-coupon-toggle,
body.sfc-body .checkout_coupon,
body.sfc-body .woocommerce-info:has(a.showcoupon) { display: none !important; }

/* ===== HEADER ===== */
.sfc-header {
  background: var(--sfc-white);
  border-bottom: 1px solid var(--sfc-border);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--sfc-shadow);
  flex-wrap: wrap;
  gap: 10px;
}
.sfc-logo { text-decoration: none; display: flex; align-items: center; }
.sfc-logo img { max-height: 40px; width: auto; }
.sfc-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-weight: 600;
  color: var(--sfc-text); letter-spacing: .5px;
}
.sfc-steps { display: flex; align-items: center; gap: 2px; }
.sfc-step {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 500; color: #c0c8d0; padding: 0 8px;
  text-decoration: none;
}
.sfc-step--done { color: var(--sfc-text); }
.sfc-step--active { color: var(--sfc-teal); }
.sfc-step__num { font-weight: 300; margin-right: 3px; }
.sfc-step-sep { color: #d1d5db; font-size: 12px; }
.sfc-header__secure {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--sfc-muted); letter-spacing: .3px;
}

/* ===== MOBILE TOGGLE ===== */
.sfc-mobile-toggle {
  display: none;
  background: var(--sfc-teal-light)!important;
  border-bottom: 1px solid var(--sfc-teal-mid)!important;
  padding: 12px 20px;
  align-items: center;
  justify-content: space-between;
}
.sfc-mobile-toggle__btn {
  background: none !important; border: none!important; cursor: pointer;
  display: flex; align-items: center; gap: 7px;
  font-family: var(--sfc-font); font-size: 13px;
  font-weight: 600; color: var(--sfc-teal); padding: 0;
}
.sfc-mobile-total { font-size: 14px; font-weight: 700; color: var(--sfc-text); }
.sfc-chevron { transition: transform .25s; }
.sfc-chevron.open { transform: rotate(180deg); }

/* ===== MAIN WRAPPER ===== */
.sfc-wrapper {
  display: grid;
  grid-template-columns: 1fr 420px;
  max-width: 1140px;
  margin: 0 auto;
  min-height: calc(100vh - 70px);
}

/* ===== LEFT MAIN ===== */
.sfc-main {
  background: var(--sfc-white);
  padding: 36px 52px 60px 52px;
  border-right: 1px solid var(--sfc-border);
  animation: sfcSlideIn .35s ease both;
}

/* ===== NOTICES ===== */
.sfc-notices .woocommerce-error,
.sfc-notices .woocommerce-message,
.sfc-notices .woocommerce-info {
  padding: 12px 16px;
  border-radius: var(--sfc-radius);
  margin-bottom: 16px;
  font-size: 13px;
  list-style: none;
}
.sfc-notices .woocommerce-error { background: #fef2f2; border: 1px solid #fecaca; color: var(--sfc-red); }
.sfc-notices .woocommerce-message { background: #f0fdf4; border: 1px solid #bbf7d0; color: var(--sfc-green); }

/* ===== URGENCY ===== */
.sfc-urgency {
  background: var(--sfc-teal-light);
  border: 1px solid var(--sfc-teal-mid);
  border-radius: var(--sfc-radius);
  padding: 11px 16px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; color: #2d6b6b;
  margin-bottom: 28px;
}
#sfcTimer { font-weight: 700; color: var(--sfc-teal); }

/* ===== SECTIONS ===== */
.sfc-section { margin-bottom: 32px; }
.sfc-section__title {
  font-size: 21px !important; /*letter-spacing: 2px;*/
  font-weight: 700; color: var(--sfc-text);
  margin: 0 0 14px; padding: 0;
}
.sfc-section__header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px; flex-wrap: wrap; gap: 6px;
}
.sfc-section__header .sfc-section__title { margin: 0; }
.sfc-section__sub { font-size: 12px; color: var(--sfc-muted); }
.sfc-section__sub a { color: var(--sfc-teal); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.sfc-login-required-notice {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 10px; padding: 10px 14px;
  background: #fff7ed; border: 1px solid #fed7aa;
  border-radius: 8px; color: #9a3412; font-size: 13px; line-height: 1.5;
}
.sfc-login-required-notice svg { flex-shrink: 0; margin-top: 2px; stroke: #ea580c; }
.sfc-login-required-notice a { color: #9a3412; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }


/* ===== CHECKBOX ===== */
.sfc-checkbox {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--sfc-muted); cursor: pointer;
  margin: 8px 0 0;
}
.sfc-checkbox input[type="checkbox"] {
  width: 17px; height: 17px; accent-color: var(--sfc-teal);
  cursor: pointer; flex-shrink: 0;
}

/* ===== WOO FORM FIELDS ===== */
.sfc-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 0;
}
.sfc-woo-field { margin-bottom: 10px !important; }
.sfc-woo-field--full { grid-column: 1 / -1; }
.sfc-woo-field--half { }

/* Override WooCommerce field defaults */
body.sfc-body .woocommerce-checkout .form-row { margin: 0 0 10px !important; padding: 0 !important; float: none !important; width: 100% !important; }
body.sfc-body .woocommerce-checkout .form-row label {
  font-size: 11px; font-weight: 600; color: var(--sfc-muted);
  letter-spacing: .3px; margin-bottom: 5px; display: block;
}
body.sfc-body .woocommerce-checkout .form-row label .required { color: var(--sfc-teal); }
body.sfc-body .woocommerce-checkout .form-row input[type="text"],
body.sfc-body .woocommerce-checkout .form-row input[type="email"],
body.sfc-body .woocommerce-checkout .form-row input[type="tel"],
body.sfc-body .woocommerce-checkout .form-row input[type="password"],
body.sfc-body .woocommerce-checkout .form-row select,
body.sfc-body .woocommerce-checkout .form-row textarea {
  width: 100%; padding: 13px 14px;
  border: 1.5px solid var(--sfc-border);
  border-radius: var(--sfc-radius);
  font-family: var(--sfc-font); font-size: 14px;
  color: var(--sfc-text); background: var(--sfc-white);
  transition: border-color .2s, box-shadow .2s;
  appearance: none; outline: none; box-shadow: none;
  height: auto; min-height: 48px; box-sizing: border-box;
}
body.sfc-body .woocommerce-checkout .form-row input:focus,
body.sfc-body .woocommerce-checkout .form-row select:focus,
body.sfc-body .woocommerce-checkout .form-row textarea:focus {
  border-color: var(--sfc-teal);
  box-shadow: 0 0 0 3px rgba(92,79,65,.15);
}
body.sfc-body .woocommerce-checkout .form-row.woocommerce-invalid input { border-color: var(--sfc-red); }
body.sfc-body .woocommerce-checkout .form-row.woocommerce-validated input { border-color: var(--sfc-green); }
/* Ensure WC input wrapper doesn't shrink the field */
body.sfc-body .woocommerce-checkout .form-row .woocommerce-input-wrapper {
  display: block;
  width: 100%;
}
body.sfc-body .woocommerce-checkout .form-row .woocommerce-input-wrapper select,
body.sfc-body .woocommerce-checkout #billing_country,
body.sfc-body .woocommerce-checkout #billing_state,
body.sfc-body .woocommerce-checkout #shipping_country,
body.sfc-body .woocommerce-checkout #shipping_state {
  width: 100% !important;
  padding: 13px 36px 13px 14px !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  appearance: none !important;
  -webkit-appearance: none !important;
}
body.sfc-body .woocommerce-checkout select.country_to_state { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

/* Country field uses Select2 — target its rendered container elements */
body.sfc-body .woocommerce-checkout #billing_country_field .select2-container,
body.sfc-body .woocommerce-checkout #shipping_country_field .select2-container {
  width: 100% !important;
}
body.sfc-body .woocommerce-checkout #billing_country_field .select2-container .select2-selection,
body.sfc-body .woocommerce-checkout #shipping_country_field .select2-container .select2-selection {
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 36px 0 14px !important;
  border: 1.5px solid var(--sfc-border) !important;
  border-radius: var(--sfc-radius) !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
  background-color: var(--sfc-white) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
}
body.sfc-body .woocommerce-checkout #billing_country_field .select2-selection .select2-selection__rendered,
body.sfc-body .woocommerce-checkout #shipping_country_field .select2-selection .select2-selection__rendered {
  line-height: 48px !important;
  padding: 0 !important;
  color: var(--sfc-text) !important;
  font-size: 14px !important;
  font-family: var(--sfc-font) !important;
}
body.sfc-body .woocommerce-checkout #billing_country_field .select2-selection .select2-selection__arrow,
body.sfc-body .woocommerce-checkout #shipping_country_field .select2-selection .select2-selection__arrow {
  display: none !important;
}
body.sfc-body .woocommerce-checkout #billing_country_field .select2-container--open .select2-selection,
body.sfc-body .woocommerce-checkout #shipping_country_field .select2-container--open .select2-selection {
  border-color: var(--sfc-teal) !important;
  box-shadow: 0 0 0 3px rgba(92,79,65,.15) !important;
}

/* Floating label — email only */
.sfc-field--floating { position: relative; margin-bottom: 10px; }
.sfc-field--floating input {
  width: 100%; padding: 20px 14px 8px !important;
  border: 1.5px solid var(--sfc-border);
  border-radius: var(--sfc-radius);
  font-family: var(--sfc-font); font-size: 14px;
  color: var(--sfc-text); background: var(--sfc-white);
  appearance: none; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.sfc-field--floating input:focus {
  border-color: var(--sfc-teal);
  box-shadow: 0 0 0 3px rgba(92,79,65,.15);
}
.sfc-field--floating label {
  position: absolute; top: 14px; left: 14px;
  font-size: 14px; color: #9ca3af; pointer-events: none;
  transition: all .18s;
}
.sfc-field--floating input:focus ~ label,
.sfc-field--floating input:not(:placeholder-shown) ~ label {
  top: 6px; font-size: 10px; color: var(--sfc-teal);
  font-weight: 600; letter-spacing: .4px;
}

/* ===== SHIP TO DIFFERENT ADDRESS ===== */
.sfc-ship-diff { margin: 16px 0 0; }
.sfc-shipping-diff { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--sfc-border); }

/* ===== SHIPPING METHODS ===== */
.sfc-shipping-loader {
  display: flex; align-items: center; gap: 12px;
  color: var(--sfc-muted); font-size: 13px;
  padding: 16px; background: #f9fafb;
  border: 1px dashed var(--sfc-border);
  border-radius: var(--sfc-radius);
}
.sfc-spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--sfc-border);
  border-top-color: var(--sfc-teal);
  border-radius: 50%;
  animation: sfcSpin .7s linear infinite;
  flex-shrink: 0;
}
.sfc-shipping-method-option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--sfc-border);
  border-radius: var(--sfc-radius);
  cursor: pointer;
  transition: border-color .2s, background .2s;
  margin-bottom: 8px;
}
.sfc-shipping-method-option:hover { border-color: var(--sfc-teal-mid); background: var(--sfc-teal-light); }
.sfc-shipping-method-option.selected { border-color: var(--sfc-teal); background: var(--sfc-teal-light); }
.sfc-shipping-method-option input[type="radio"] { accent-color: var(--sfc-teal); flex-shrink: 0; }
.sfc-shipping-method-option .sm-label { flex: 1; font-weight: 500; font-size: 14px; }
.sfc-shipping-method-option .sm-price { font-weight: 600; font-size: 14px; color: var(--sfc-text); }
.sfc-shipping-method-option .sm-price.free { color: var(--sfc-green); }

/* ===== ORDER NOTES ===== */
.sfc-toggle-notes {
  background: none !important; border: none!important; cursor: pointer;
  font-family: var(--sfc-font); font-size: 13px;
  color: var(--sfc-muted) !important; padding: 0;
  transition: color .2s;
}
.sfc-toggle-notes:hover { color: var(--sfc-teal) !important; }

/* ===== PAYMENT ===== */
.sfc-payment-secure {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--sfc-muted);
  margin-bottom: 14px;
}
.sfc-payment-method {
  border: 1.5px solid var(--sfc-border);
  border-radius: var(--sfc-radius);
  overflow: hidden; margin-bottom: 8px;
  transition: border-color .2s;
}
.sfc-payment-method.sfc-wc-active { border-color: var(--sfc-teal); }
.sfc-payment-label {
  display: flex !important; align-items: center; gap: 10px;
  padding: 14px 16px; cursor: pointer;
  background: var(--sfc-white); margin: 0 !important;
}
.sfc-payment-label:hover { background: #fafafa; }
.sfc-payment-label input[type="radio"] {
  accent-color: var(--sfc-teal); width: 17px; height: 17px;
  flex-shrink: 0; margin: 0 !important;
}
.sfc-payment-label__name { flex: 1; font-weight: 600; font-size: 14px; color: var(--sfc-text); }
.sfc-payment-icons { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.sfc-payment-icons img { max-height: 24px; width: auto; }
/* Card fields box */
.sfc-payment-fields {
  padding: 14px 16px;
  border-top: 1px solid var(--sfc-border);
  background: #fafafa;
}
.sfc-payment-fields p { font-size: 13px; color: var(--sfc-muted); margin: 0 0 10px; }
.sfc-payment-fields .form-row { margin: 0 0 10px !important; }
.sfc-payment-fields input[type="text"],
.sfc-payment-fields input[type="number"],
.sfc-payment-fields input[type="tel"] {
  border: 1.5px solid var(--sfc-border) !important;
  border-radius: 6px !important; padding: 11px 12px !important;
  width: 100%; font-family: var(--sfc-font);
}
/* Ensure Stripe / Square iframes are always visible — do NOT override height */
.sfc-payment-fields iframe,
.sfc-payment-fields .wc-stripe-elements-field,
.sfc-payment-fields #wc-stripe-card-element,
.sfc-payment-fields [id*="stripe"],
.sfc-payment-fields [class*="stripe"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.sfc-no-payment { padding: 16px; color: var(--sfc-muted); font-style: italic; }
.sfc-terms { margin: 16px 0; }

/* ===== PLACE ORDER BTN ===== */
.sfc-btn-place-order {
  width: 100%; padding: 17px;
  background: var(--sfc-teal) !important; color: white !important;
  border: none !important; border-radius: var(--sfc-radius);
  font-family: var(--sfc-font); font-size: 15px; font-weight: 700;
  letter-spacing: .5px; cursor: pointer; margin-top: 20px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .2s, transform .1s, box-shadow .2s;
  
}
.sfc-btn-place-order:hover {
  background: var(--sfc-teal-dark)!important;
  
  transform: translateY(-1px);
}
.sfc-btn-place-order:active { transform: none; }
.sfc-btn-place-order:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.sfc-btn-spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: white; border-radius: 50%;
  animation: sfcSpin .65s linear infinite;
}
.sfc-order-sub { text-align: center; font-size: 11px !important; color: var(--sfc-muted) !important; margin-top: 12px !important; }
.sfc-order-sub a { color: var(--sfc-muted) !important; }

/* ===== SIDEBAR ===== */
.sfc-sidebar {
  background: #f9f9f9;
  padding: 36px 36px 60px;
  border-left: 1px solid #d4d6e5;
  animation: sfcSlideIn .35s .1s ease both;
}
.sfc-sidebar__title {
  font-size: 21px !important; /*letter-spacing: 2px;*/ 
  font-weight: 700; color: var(--sfc-text); margin: 0 0 18px;
}

/* Shipping Progress */
.sfc-shipping-progress {
  background: var(--sfc-teal-light);
  border: 1px solid var(--sfc-teal-mid);
  border-radius: var(--sfc-radius);
  padding: 12px 14px; margin-bottom: 18px;
}
.sfc-shipping-progress__msg {
  font-size: 12px; font-weight: 600; color: #2d6b6b;
  margin: 0 0 8px;
}
.sfc-track { height: 5px; background: var(--sfc-teal-mid); border-radius: 99px; overflow: hidden; }
.sfc-track__fill { height: 100%; background: var(--sfc-teal); border-radius: 99px; transition: width .5s ease; }

/* Cart Items */
.sfc-cart-items { margin-bottom: 18px; }
.sfc-cart-item {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 13px 0; border-bottom: 1px solid var(--sfc-border);
}
.sfc-cart-item:last-child { border-bottom: none; }
.sfc-cart-item__img-wrap { position: relative; flex-shrink: 0; }
.sfc-cart-item__img {
  width: 58px; height: 58px;
  border-radius: 7px; border: 1.5px solid var(--sfc-border);
  overflow: hidden; background: #f3f4f6;
  display: flex; align-items: center; justify-content: center;
}
.sfc-cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.sfc-cart-item__qty {
  position: absolute; top: -7px; right: -7px;
  background: var(--sfc-teal); color: white;
  font-size: 10px; font-weight: 700;
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #f8fbfb;
}
.sfc-cart-item__details { flex: 1; min-width: 0; }
.sfc-cart-item__name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.sfc-cart-item__variant { font-size: 12px; color: var(--sfc-muted); margin-top: 2px; }
.sfc-cart-item__price { font-size: 13px; font-weight: 600; white-space: nowrap; }

/* Coupon */
.sfc-coupon { margin-bottom: 18px; }
.sfc-coupon__row { display: flex; gap: 8px; }
.sfc-coupon__input {
  flex: 1; padding: 11px 13px;
  border: 1.5px solid var(--sfc-border);
  border-radius: var(--sfc-radius);
  font-family: var(--sfc-font); font-size: 13px;
  background: var(--sfc-white); color: var(--sfc-text);
  outline: none; transition: border-color .2s;
}
.sfc-coupon__input:focus { border-color: var(--sfc-teal); }
.sfc-coupon__input::placeholder { color: #b0b8c1; }
.sfc-coupon__btn {
  padding: 11px 16px;
  background: var(--sfc-teal-mid) !important; border: none !important;
  border-radius: var(--sfc-radius);
  font-family: var(--sfc-font); font-size: 11px;
  font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; cursor: pointer;
  color: var(--sfc-white) !important; transition: background .2s, color .2s;
}
.sfc-coupon__btn:hover { background: var(--sfc-teal) !important; color: white !important;  }
.sfc-coupon__msg { font-size: 12px; margin: 7px 0 0; padding: 0; }
.sfc-coupon__msg.success { color: var(--sfc-green); }
.sfc-coupon__msg.error   { color: var(--sfc-red); }

/* Applied state */
.sfc-coupon__applied-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
}
.sfc-coupon__tag {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #15803d;
}
.sfc-coupon__tag svg { flex-shrink: 0; stroke: #15803d; }
.sfc-coupon__applied-saving {
  font-size: 13px;
  font-weight: 700;
  color: #15803d;
  white-space: nowrap;
}
.sfc-coupon__remove {
  background: none !important;
  border: none !important;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
  color: #6b7280;
  display: flex;
  align-items: center;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.sfc-coupon__remove:hover { color: #dc2626 !important; background: #fee2e2 !important; }

/* Totals */
.sfc-totals { border-top: 1px solid var(--sfc-border); padding-top: 14px; }
.sfc-totals__row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; font-size: 13px;
}
.sfc-totals__row > span:first-child { color: var(--sfc-muted); font-weight: 500; }
.sfc-totals__row > span:last-child  { font-weight: 600; }
.sfc-totals__calc { color: #9ca3af; font-style: italic; font-size: 12px; font-weight: 400 !important; }
.sfc-totals__row--discount span:last-child { color: var(--sfc-green) !important; }
.sfc-totals__row--grand {
  border-top: 1px solid var(--sfc-border);
  margin-top: 10px; padding-top: 14px;
}
.sfc-totals__row--grand > span:first-child {
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--sfc-text) !important;
}
.sfc-totals__row--grand > span:last-child { font-size: 20px; font-weight: 700; }

/* Perks */
.sfc-perks {
  /*border: 1.5px solid var(--sfc-teal-mid);
  border-radius: var(--sfc-radius);
  padding: 18px; */margin-top: 24px;
  /*background: var(--sfc-white);*/
}
.sfc-perks__title {
  font-size: 10px; /*letter-spacing: 2.5px;*/
  font-weight: 400;
  text-align: left; margin: 0 0 14px;
}
.sfc-perks__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.sfc-perk { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.sfc-perk__icon {
  width: 42px; height: 42px;
  background: var(--sfc-teal-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.sfc-perk__icon svg { width: 20px; height: 20px; color: var(--sfc-teal); }
.sfc-perk > span { font-size: 9px; font-weight: 700; letter-spacing: .4px; color: var(--sfc-text); line-height: 1.3; }

/* ===== TOAST ===== */
.sfc-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(12px);
  padding: 12px 24px; border-radius: var(--sfc-radius);
  font-family: var(--sfc-font); font-size: 14px; font-weight: 600;
  box-shadow: 0 4px 22px rgba(0,0,0,.15); z-index: 9999;
  opacity: 0; transition: transform .25s ease, opacity .25s ease;
  pointer-events: none;
}
.sfc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.sfc-toast--success { background: #16a34a; color: white; }
.sfc-toast--error   { background: #c0392b; color: white; }

/* ===== ANIMATIONS ===== */
@keyframes sfcSlideIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
@keyframes sfcSpin { to { transform: rotate(360deg); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .sfc-wrapper { grid-template-columns: 1fr; }
  .sfc-sidebar { order: -1; border-left: none; border-bottom: 1px solid var(--sfc-border); display: none; }
  .sfc-sidebar.open { display: block; }
  .sfc-mobile-toggle { display: flex; }
  .sfc-main { border-right: none; padding: 24px 20px 48px; }
  .sfc-header__secure { display: none; }
}
@media (max-width: 640px) {
  .sfc-header { padding: 12px 16px; }
  .sfc-steps .sfc-step { font-size: 9.5px; padding: 0 5px; }
  .sfc-main { padding: 20px 16px 48px; }
  .sfc-express__btns { grid-template-columns: 1fr; }
  .sfc-row { grid-template-columns: 1fr; }
  .sfc-sidebar { padding: 20px 16px 32px; }
  .sfc-perks__grid { gap: 6px; }
  .sfc-perk > span { font-size: 8px; }
}

/* ===== PHONE WITH COUNTRY CODE ===== */
.sfc-phone-wrap {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--sfc-border);
  border-radius: var(--sfc-radius);
  overflow: hidden;
  transition: border-color .2s;
  width: 100%;
}
.sfc-phone-wrap:focus-within {
  border-color: var(--sfc-teal);
  box-shadow: 0 0 0 3px rgba(92,79,65,.15);
}
.sfc-phone-code {
  flex: 0 0 90px;
  width: 90px !important;
  min-width: 90px;
  padding: 0 8px;
  height: 48px;
  border: none !important;
  border-right: 1.5px solid var(--sfc-border) !important;
  border-radius: 0 !important;
  background: var(--sfc-teal-light);
  color: var(--sfc-text);
  font-size: 13px;
  font-family: var(--sfc-font);
  cursor: pointer;
  outline: none;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235c4f41' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 22px;
}
/* Critical: override WC's width:100% on tel inputs so flex works */
.sfc-phone-wrap input.sfc-phone-input,
body.sfc-body .woocommerce-checkout .form-row input.sfc-phone-input,
body.sfc-body input#billing_phone.sfc-phone-input {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 13px 14px !important;
  font-size: 14px !important;
  outline: none;
  background: var(--sfc-white);
  height: 48px;
}
/* Override WC label positioning for our custom phone field */
.sfc-woo-field label[for="billing_phone"] {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--sfc-muted);
  letter-spacing: .3px;
}

/* ===== SOLD BY LINE ===== */
.sfc-sold-by {
  margin: 8px 0 0 0;
  font-size: 14px;
  color: var(--sfc-muted);
  font-weight: bold;
}

/* ===== DISCLAIMER ===== */
.sfc-disclaimer {
  margin-top: 24px;
 /*  padding: 14px 16px;
  background: var(--sfc-teal-light);
  border: 1px solid rgba(92,79,65,.2);
  border-radius: var(--sfc-radius); */
}
.sfc-disclaimer p {
  margin: 0;
  font-size: 12px;
  color: var(--sfc-muted);
  line-height: 1.7;
}


/* ===== DUPLICATE WC SUBMIT/T&C SUPPRESSION ===== */
body.sfc-body .place-order,
body.sfc-body .form-row.place-order,
body.sfc-body #place_order,
body.sfc-body .woocommerce-terms-and-conditions-wrapper {
  display: none !important;
}

body.sfc-body #sfcPlaceOrder,
body.sfc-body .sfc-terms {
  display: block !important;
}
