/* BLD Checkout Tiles 2.0.1: checkout restyle (FunnelKit "gutenberg-minimalist" template, checkout #5662).
   Matches the single product page / product cards: Inter, white rounded cards with soft shadows on a light background,
   blue #087cf0 accents (product page "Add To Cart") instead of FunnelKit's orange primary colour #f44d00.
   Scoped to body.bldct-restyle (only where the new checkout is active). Nothing is removed. */
body.bldct-restyle { --bldct-bg:#f4f7fb; --bldct-card-shadow:0 8px 26px rgb(29 52 90 / 6.7%); --bldct-ink:#292e4d; --bldct-ring:0 0 0 3px rgb(8 124 240 / 16%); }

/* ---------- page + font ---------- */
body.bldct-restyle, body.bldct-restyle .container-wrap, body.bldct-restyle .main-content,
body.bldct-restyle .bwf-section-4d6ccf62, body.bldct-restyle .wfacp-template-container { background-color:var(--bldct-bg) !important; }
body.bldct-restyle #wfacp-e-form *:not(i):not(svg):not(path):not(text),
body.bldct-restyle .wfacp-mini-cart-block *:not(i):not(svg):not(path),
body.bldct-restyle .bwf-adv-heading, body.bldct-restyle .bwf-icon-list-text, body.bldct-restyle .bwf-adv-heading a { font-family:var(--bldct-font) !important; }

/* ---------- section cards (Contact / Shipping Address / Shipping Method / Payment) ---------- */
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form .wfacp-section {
  background:#fff !important; border:1px solid #e6ebf2 !important; border-radius:18px !important; box-shadow:var(--bldct-card-shadow) !important;
  padding:24px !important; margin:0 0 20px !important;
}
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form .wfacp_section_heading.wfacp_section_title,
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form .wfacp-comm-title h2 { color:var(--bldct-ink) !important; font-weight:700 !important; font-size:19px !important; letter-spacing:-.01em; }
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form .wfacp-comm-title h4 { color:var(--bldct-muted) !important; font-size:13px !important; font-weight:400 !important; }

/* ---------- inputs ---------- */
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form .wfacp_main_form.woocommerce input[type="text"]:not(.select2-search__field),
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form .wfacp_main_form.woocommerce input[type="email"],
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form .wfacp_main_form.woocommerce input[type="tel"],
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form .wfacp_main_form.woocommerce input[type="password"],
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form .wfacp_main_form.woocommerce input[type="number"],
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form .wfacp_main_form.woocommerce select,
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form .wfacp_main_form.woocommerce textarea,
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form .wfacp_main_form .select2-container .select2-selection--single {
  border:1px solid #d7deea !important; border-radius:10px !important; background-color:#fff !important; box-shadow:none !important;
}
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form .wfacp_main_form .form-row:not(.woocommerce-invalid-required-field) .wfacp-form-control:focus,
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form .wfacp_main_form .form-row:not(.woocommerce-invalid-required-field) .select2-container--open .select2-selection--single,
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form .wfacp_main_form .select2-container .select2-selection--single:focus,
body.bldct-restyle .wfacp-mini-cart-block .wfacp-form-control:focus {
  border-color:var(--bldct-blue) !important; box-shadow:var(--bldct-ring) !important; outline:none !important;
}
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form .wfacp_main_form p.woocommerce-invalid-required-field .wfacp-form-control,
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form .wfacp_main_form p.woocommerce-invalid-email .wfacp-form-control { border-color:var(--bldct-err) !important; box-shadow:0 0 0 1px var(--bldct-err) !important; }
body.bldct-restyle #wfacp-e-form .wfacp_main_form label.wfacp-form-control-label { color:#6b7a90 !important; }

/* ---------- radios + checkboxes: blue instead of orange ---------- */
body.bldct-restyle #wfacp-e-form input[type=radio], body.bldct-restyle #wfacp-e-form input[type=checkbox],
body.bldct-restyle .wfacp-mini-cart-block input[type=checkbox] { accent-color:var(--bldct-blue); }
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form .wfacp_main_form.woocommerce input[type=radio]:checked,
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form .wfacp_main_form.woocommerce #payment li.wc_payment_method input.input-radio:checked { border-color:var(--bldct-blue) !important; }
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form .wfacp_main_form.woocommerce input[type=radio]:checked::before,
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form #payment li.wc_payment_method input.input-radio:checked::before { background-color:var(--bldct-blue) !important; }
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form .wfacp-form input[type=checkbox]:checked,
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form .wfacp_main_form input[type=checkbox]:checked { background-color:var(--bldct-blue) !important; border-color:var(--bldct-blue) !important; }
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form input[type=radio]:focus-visible,
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form input[type=checkbox]:focus-visible { outline:none !important; box-shadow:var(--bldct-ring) !important; }

/* Shipping method rows: rounded list, selected row tinted. */
body.bldct-restyle #wfacp-e-form #shipping_method { border:1px solid #e3e9f2 !important; border-radius:12px !important; overflow:hidden; }
body.bldct-restyle #wfacp-e-form #shipping_method li.wfacp_single_shipping_method { border-color:#e3e9f2 !important; transition:background-color .15s; }
body.bldct-restyle #wfacp-e-form #shipping_method li.wfacp_single_shipping_method:has(input:checked) { background:var(--bldct-tint) !important; }

/* ---------- links ---------- */
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form a:not(.button):not(.wfacp_summary_link):not(.bldct-x),
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form a:not(.button):not(.wfacp_summary_link):not(.bldct-x):visited,
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form .woocommerce-privacy-policy-link,
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form .wfacp_collapsible,
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form .woocommerce-form-login-toggle .woocommerce-info a,
body.bldct-restyle .wfacp-mini-cart-block a:not(.button) { color:var(--bldct-link) !important; }
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form a:not(.button):hover { color:var(--bldct-blue) !important; }
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form .wfacp_collapsible svg,
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form .wfacp_collapsible path { color:var(--bldct-link) !important; fill:currentColor !important; }
body.bldct-restyle #wfacp-e-form a:focus-visible, body.bldct-restyle .wfacp-mini-cart-block a:focus-visible { outline:2px solid rgb(8 124 240 / 45%) !important; outline-offset:2px; border-radius:3px; }
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form .wfacp_mini_cart_remove_item_from_cart,
body.bldct-restyle .wfacp-mini-cart-block .wfacp_mini_cart_remove_item_from_cart { color:#98a3b3 !important; }

/* "Returning customer? Click here to login": was a full-bleed blue bar with dark text. */
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form .woocommerce-form-login-toggle .woocommerce-info {
  background:#fff !important; color:var(--bldct-muted) !important; border:1px solid #e6ebf2 !important; border-radius:14px !important;
  box-shadow:var(--bldct-card-shadow) !important; padding:12px 18px !important; margin:0 0 20px !important; font-size:14px !important;
}
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form .woocommerce-form-login-toggle .woocommerce-info::before { color:var(--bldct-blue) !important; }

/* ---------- buttons (login, coupon, next step) + step indicators ---------- */
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form button[type=submit]:not(#place_order),
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form button[type=button]:not(.gpay-button):not(.bldct-submit),
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form .wfacp-coupon-section .wfacp-coupon-page .wfacp-coupon-btn,
body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form .wfacp-login-btn,
body.bldct-restyle .wfacp-mini-cart-block .wfacp-coupon-btn, body.bldct-restyle .wfacp-mini-cart-block button.button {
  background-color:var(--bldct-blue) !important; border-color:var(--bldct-blue) !important; color:#fff !important; border-radius:10px !important;
}
body.bldct-restyle .wfacp-mini-cart-block .wfacp-coupon-btn[disabled], body.bldct-restyle .wfacp-mini-cart-block button.button:disabled { background-color:#c9d3df !important; border-color:#c9d3df !important; color:#56657a !important; }
body.bldct-restyle #wfacp-e-form .wfacp-order2StepNumber,
body.bldct-restyle #wfacp-e-form .wfacp-payment-tab-list.wfacp-active .wfacp-order2StepNumber { background-color:var(--bldct-blue) !important; border-color:transparent !important; color:#fff !important; }
body.bldct-restyle #wfacp-e-form .wfacp-payment-tab-list.wfacp-active { border-bottom-color:var(--bldct-blue) !important; }
body.bldct-restyle #wfacp-e-form .wfacp_summary_link, body.bldct-restyle #wfacp-e-form .wfacp_summary_link * { color:var(--bldct-ink) !important; }
body.bldct-restyle #wfacp-e-form .wfacp_mb_mini_cart_wrap .wfacp_mb_cart_accordian { border:1px solid #e6ebf2 !important; border-radius:14px !important; box-shadow:var(--bldct-card-shadow) !important; }

/* ---------- order summary sidebar (FunnelKit mini-cart block) ---------- */
body.bldct-restyle .wfacp-mini-cart-block { background:#fff !important; border:1px solid #e6ebf2 !important; border-radius:18px !important; box-shadow:var(--bldct-card-shadow) !important; }
body.bldct-restyle .wfacp-mini-cart-block .wfacp-form-control { border:1px solid #d7deea !important; border-radius:10px !important; }
body.bldct-restyle .wfacp-mini-cart-block .wfacp_mini_cart_start_h .wfacp-order-summary-label, body.bldct-restyle .wfacp-mini-cart-block h3 { color:var(--bldct-ink) !important; }
body.bldct-restyle .wfacp-mini-cart-block .product-image img, body.bldct-restyle .wfacp-mini-cart-block .wfacp-pro-thumb img { border-radius:10px !important; }

/* ---------- errors stay red (not orange) ---------- */
body.bldct-restyle #wfacp-e-form .woocommerce-error, body.bldct-restyle #wfacp-e-form .woocommerce-error li,
body.bldct-restyle #wfacp-e-form .wfacp_inline_field_error, body.bldct-restyle #wfacp-e-form span.wfacp_input_error_msg { color:var(--bldct-err) !important; }
body.bldct-restyle #wfacp-e-form .woocommerce-error { background:#fdecea !important; border-radius:10px !important; }

/* ---------- payment section fit ---------- */
body.bldct-restyle #wfacp-e-form #payment { background:transparent !important; }
body.bldct-restyle #wfacp-e-form .woocommerce-privacy-policy-text p { color:var(--bldct-muted) !important; font-size:12px !important; }
@media (max-width:767px) {
  body.bldct-restyle .wfacp-checkout-form-block #wfacp-e-form .wfacp-section { padding:18px 16px !important; border-radius:16px !important; margin-bottom:14px !important; }
}
