/**
 * Custom Checkout (FunnelKit) styles.
 *
 * Loaded only on the "Checkout FunnelKit Custom" page template.
 * Everything is scoped to .checkout-fk-page to avoid leaking styles.
 */

:root {
  --cfk-gold: #cea860;
  --cfk-dark: #2a2a28;
  --cfk-green: #2f8f4e;
  --cfk-track: #eae3db;
  --cfk-border: #e4ddd4;
}

/* ==========================================================================
   Container: keep the form inside the theme container width
   ========================================================================== */

.checkout-fk-page .wfacp-checkout-form-block {
  max-width: 1440px;
  width: 100%;
  margin-inline: auto;
  padding: 25px 24px 64px;
}
.checkout-page_bottom-colums {
  max-width: 1360px;
  width: 100%;
  margin-inline: auto;
  padding: 25px 24px;
  gap: 60px;
  justify-content: center;
}

/* ==========================================================================
   Two columns: left = products + order summary, right = contact + payment
   ========================================================================== */

@media (min-width: 1024px) {
  .checkout-fk-page .wfacp-left-panel.single_step {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto !important;
    column-gap: 60px;
    align-items: start;
  }

  .checkout-fk-page
    #wfacp-e-form
    .wfacp-left-panel.single_step
    .fkcf-section-your-products-2 {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .checkout-fk-page
    #wfacp-e-form
    .wfacp-left-panel.single_step
    .fkcf-section-order-summary-3 {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  .checkout-fk-page
    #wfacp-e-form
    .wfacp-left-panel.single_step
    .fkcf-section-contact-information-0 {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  .checkout-fk-page #wfacp-e-form .wfacp-left-panel.single_step .wfacp_payment {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }
}

/* Fixed column widths on large desktops: left 720px, right 540px */
@media (min-width: 1440px) {
  .checkout-fk-page #wfacp-e-form .wfacp-left-panel.single_step {
    grid-template-columns: 720px 540px !important;
    justify-content: center;
    column-gap: 60px;
  }
}

/* ==========================================================================
   Section headings ("Step 1/2/3" look)
   ========================================================================== */

.checkout-fk-page #wfacp-e-form .wfacp-comm-title h2 {
  font-family: "Inter", sans-serif !important;
  font-weight: 600 !important;
  font-size: 24px !important;
  line-height: 140% !important;
  letter-spacing: 0 !important;
  text-transform: capitalize !important;
  color: var(--cfk-dark) !important;
  margin: 0 0 20px !important;
}

.checkout-fk-page .wfacp_payment .wfacp-comm-title h4 {
  margin: 4px 0 16px;
  font-size: 14px;
  font-weight: 400;
  color: #7a7a76;
}

body #wfacp-e-form #add_payment_method #payment ul.payment_methods li,
body #wfacp-e-form .woocommerce-cart #payment ul.payment_methods li,
body #wfacp-e-form .woocommerce-checkout #payment ul.payment_methods li {
  padding: 10px 0 !important;
  border: none !important;
}
body #wfacp-e-form #add_payment_method #payment ul.payment_methods,
body #wfacp-e-form .woocommerce-cart #payment ul.payment_methods,
body #wfacp-e-form .woocommerce-checkout #payment ul.payment_methods,
.payment_method_easyauthnet_authorizenet,
.wc_payment_method .payment_method_wfocu_test {
  border: none !important;
}
#wc-authorize-net-cim-credit-card-expiry_field {
  margin-right: 20px !important;
}
ul.payment_methods li div.sv-wc-payment-gateway-card-icons {
  display: inline !important;
}
body #wfacp-e-form .woocommerce-checkout #payment div.payment_box {
  border: none !important;
}

/* ==========================================================================
   Form inputs
   ========================================================================== */

/* Labels above the input (kill the plugin's floating-label positioning).
   Two IDs (#wfacp-e-form #wfacp_checkout_form) outrank the plugin's
   high-specificity floating-label rules. */
.checkout-fk-page
  #wfacp-e-form
  #wfacp_checkout_form
  label.wfacp-form-control-label {
  position: static !important;
  transform: none !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  display: block !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  background: transparent !important;
  font-family: "Inter", sans-serif !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  line-height: 150% !important;
  letter-spacing: 0 !important;
  color: #878787 !important;
}

/* keep the required/optional markers in sync with the label size */
.checkout-fk-page
  #wfacp-e-form
  #wfacp_checkout_form
  label.wfacp-form-control-label
  .optional,
.checkout-fk-page
  #wfacp-e-form
  #wfacp_checkout_form
  label.wfacp-form-control-label
  abbr.required,
.checkout-fk-page
  #wfacp-e-form
  #wfacp_checkout_form
  label.wfacp-form-control-label
  .required {
  font-size: 16px !important;
  line-height: 150% !important;
}

/* the wrapper no longer needs to reserve space for a floating label */
.checkout-fk-page
  #wfacp-e-form
  #wfacp_checkout_form
  .wfacp-form-control-wrapper {
  min-height: 0 !important;
}

/* Inputs / selects — fixed 68px height, symmetric padding (text not shifted),
   1.3px border, 8px radius. Two IDs beat the plugin's padding/border rules. */
.checkout-fk-page #wfacp-e-form #wfacp_checkout_form input[type="text"],
.checkout-fk-page #wfacp-e-form #wfacp_checkout_form input[type="email"],
.checkout-fk-page #wfacp-e-form #wfacp_checkout_form input[type="tel"],
.checkout-fk-page #wfacp-e-form #wfacp_checkout_form input[type="number"],
.checkout-fk-page #wfacp-e-form #wfacp_checkout_form input[type="password"],
.checkout-fk-page #wfacp-e-form #wfacp_checkout_form input[type="date"] {
  height: 40px !important;
  padding: 0 16px !important;
  border: 1.3px solid #2a2a283d !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-sizing: border-box !important;
}

/* Select2 (Country / State) — match the same box */
.checkout-fk-page
  #wfacp-e-form
  #wfacp_checkout_form
  .select2-container
  .select2-selection--single {
  height: 40px !important;
  border: 1.3px solid #2a2a283d !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-sizing: border-box !important;
}

.checkout-fk-page
  #wfacp-e-form
  #wfacp_checkout_form
  .select2-container
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 40px !important;
  padding: 0 16px !important;
  border: none !important;
}

.checkout-fk-page
  #wfacp-e-form
  #wfacp_checkout_form
  .select2-container
  .select2-selection--single
  .select2-selection__arrow {
  position: absolute !important;
  top: 50% !important;
  margin-top: -6px !important;
  right: 12px !important;
  width: 14px !important;
  height: 12px !important;
  z-index: 99 !important;
}

/* focus */
.checkout-fk-page #wfacp-e-form #wfacp_checkout_form input:focus,
.checkout-fk-page
  #wfacp-e-form
  #wfacp_checkout_form
  .select2-selection--single:focus {
  border-color: var(--cfk-gold) !important;
  box-shadow: 0 0 0 2px rgba(206, 168, 96, 0.2) !important;
  outline: none;
}

/* Reorder address fields to match the design:
   Country -> Street (Address Line 1) -> Town/City (Address Line 2) -> State + ZIP */
.checkout-fk-page .wfacp_divider_field {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

.checkout-fk-page #shipping_country_field {
  order: 1;
  flex: 0 0 100%;
  max-width: 100%;
}

.checkout-fk-page #shipping_address_1_field {
  order: 2;
  flex: 0 0 100%;
  max-width: 100%;
}

.checkout-fk-page #shipping_city_field {
  order: 3;
  flex: 0 0 100%;
  max-width: 100%;
}

.checkout-fk-page #shipping_state_field {
  order: 4;
  flex: 1 1 0;
  max-width: none;
}

.checkout-fk-page #shipping_postcode_field {
  order: 5;
  flex: 1 1 0;
  max-width: none;
}

/* ==========================================================================
   Product switcher — cards
   ========================================================================== */

/* hide the "Products / Qty / Price" header row and quick-view + qty stepper */
.checkout-fk-page .wfacp-product-switch-title,
.checkout-fk-page #product_switching_field .wfacp_qv-button,
.checkout-fk-page #product_switching_field .wfacp_quantity_selector {
  display: none !important;
}

/* reset FunnelKit's shop_table wrapper styling */
.checkout-fk-page #product_switching_field.shop_table {
  border: 0;
  background: none;
  margin: 0;
  padding: 0;
}

.checkout-fk-page .wfacp_product_switcher_container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.checkout-fk-page .wfacp_product_row.cart_item {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--cfk-border);
  border-radius: 16px;
  background: #fff;
}

.checkout-fk-page .wfacp_product_row.wfacp-selected-product {
  border: 2px solid var(--cfk-gold);
}

.checkout-fk-page .wfacp_row_wrap.ps_radio {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 28px 32px;
  align-items: start;
}

.checkout-fk-page .wfacp_ps_title_wrap {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* left column: checkbox on top, product image beneath */
.checkout-fk-page .wfacp_product_switcher_col_1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* radio -> square checkbox with gold check */
.checkout-fk-page input.wfacp_product_switch {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin: 2px 0 0;
  border: 2px solid #cfc8bd;
  border-radius: 6px;
  background: #fff;
  position: relative;
  cursor: pointer;
}

.checkout-fk-page input.wfacp_product_switch:checked {
  border-color: var(--cfk-gold);
  background: var(--cfk-gold);
}

/* (legacy border-check rule removed — the real checkmark is drawn by
   `#wfacp-e-form #product_switching_field input...:checked::after` below) */

/* product image */
.checkout-fk-page #product_switching_field .product-image {
  width: 120px;
  margin: 0;
}

.checkout-fk-page #product_switching_field .wfacp-pro-thumb img {
  width: 100%;
  height: auto;
}

.checkout-fk-page #product_switching_field .wfacp-qty-ball {
  display: none !important;
}

/* title + subtitle */
.checkout-fk-page .wfacp_product_switcher_col_2 {
  flex: 1;
}

.checkout-fk-page .wfacp_product_switcher_item {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.25;
  color: var(--cfk-dark);
}

.checkout-fk-page .wfacp_you_save_text {
  margin-top: 6px;
  font-size: 15px;
  color: #6a6a66;
}

/* price column */
.checkout-fk-page .wfacp_product_switcher_col_3 {
  text-align: right;
}

.checkout-fk-page .wfacp_product_price_sec {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  line-height: 1.2;
}

.checkout-fk-page .wfacp_product_price_sec del {
  order: 1;
  font-size: 15px;
  color: #9a9a96;
}

.checkout-fk-page .wfacp_product_price_sec del::before {
  content: "Regular Price ";
  color: #9a9a96;
  text-decoration: none;
  display: inline;
}

.checkout-fk-page .wfacp_product_price_sec ins {
  order: 2;
  text-decoration: none;
  font-weight: 700;
  font-size: 26px;
  color: var(--cfk-dark);
}

.checkout-fk-page .wfacp_product_price_sec ins::before {
  content: "Limited Time: ";
  font-weight: 500;
  font-size: 26px;
  color: #2a2a28;
}

.checkout-fk-page .wfacp_product_price_sec ins .woocommerce-Price-amount {
  color: var(--cfk-gold);
}

/* static FREE SHIPPING line under the price */
.checkout-fk-page .wfacp_product_price_container::after {
  content: "🚚 FREE SHIPPING";
  display: block;
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--cfk-gold);
  text-align: right;
}

/* Badges: MOST POPULAR (2nd), BEST VALUE (3rd) */
.checkout-fk-page .wfacp_product_row:nth-of-type(2),
.checkout-fk-page .wfacp_product_row:nth-of-type(3) {
  margin-top: 14px;
}

.checkout-fk-page .wfacp_product_row:nth-of-type(2)::before,
.checkout-fk-page .wfacp_product_row:nth-of-type(3)::before {
  position: absolute;
  top: -14px;
  left: 24px;
  padding: 5px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: #fff;
}

.checkout-fk-page .wfacp_product_row:nth-of-type(2)::before {
  content: "★ MOST POPULAR";
  background: var(--cfk-gold);
  text-transform: uppercase;
  font-size: 16px;
  border-radius: 6px;
  font-weight: 500;
  top: -20px;
  left: 22px;
  padding: 7px 13px;
}

.checkout-fk-page .wfacp_product_row:nth-of-type(3)::before {
  content: "🏆 BEST VALUE";
  background: #3aa856;
  text-transform: uppercase;
  font-size: 16px;
  border-radius: 6px;
  font-weight: 500;
  top: -20px;
  left: 24px;
  padding: 7px 11px;
}

/* ==========================================================================
   Order Summary — dashed box
   ========================================================================== */

.checkout-fk-page .wfacp-order-summary-label {
  display: none;
}

.checkout-fk-page #order_summary_field .wfacp_order_summary_container {
  border: 2px dashed var(--cfk-gold);
  border-radius: 12px;
  padding: 20px 24px 5px;
}

.checkout-fk-page #order_summary_field table {
  width: 100%;
}

.checkout-fk-page
  #wfacp-e-form
  #order_summary_field
  table.shop_table.woocommerce-checkout-review-order-table
  tr.cart-subtotal {
  display: none !important;
}

.checkout-fk-page
  #wfacp-e-form
  #order_summary_field
  table.shop_table.woocommerce-checkout-review-order-table {
  display: grid !important;
  grid-template-columns: 1fr auto;
  column-gap: 12px;
}

/* header row ("Product" / "Total") is not part of the design */
.checkout-fk-page
  #wfacp-e-form
  #order_summary_field
  table.shop_table.woocommerce-checkout-review-order-table
  thead {
  display: none !important;
}

.checkout-fk-page
  #wfacp-e-form
  #order_summary_field
  table.shop_table.woocommerce-checkout-review-order-table
  tbody,
.checkout-fk-page
  #wfacp-e-form
  #order_summary_field
  table.shop_table.woocommerce-checkout-review-order-table
  tfoot,
.checkout-fk-page
  #wfacp-e-form
  #order_summary_field
  table.shop_table.woocommerce-checkout-review-order-table
  tr {
  display: contents !important;
}

.checkout-fk-page
  #wfacp-e-form
  #order_summary_field
  table.shop_table.woocommerce-checkout-review-order-table
  th,
.checkout-fk-page
  #wfacp-e-form
  #order_summary_field
  table.shop_table.woocommerce-checkout-review-order-table
  td {
  width: auto !important;
  min-width: 0;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

.checkout-fk-page #wfacp-e-form #order_summary_field .cart_item td {
  order: 1;
}

.checkout-fk-page #wfacp-e-form #order_summary_field .tax-rate th,
.checkout-fk-page #wfacp-e-form #order_summary_field .tax-rate td {
  order: 2;
}

.checkout-fk-page #wfacp-e-form #order_summary_field .shipping th,
.checkout-fk-page #wfacp-e-form #order_summary_field .shipping td {
  order: 3;
}

.checkout-fk-page #wfacp-e-form #order_summary_field .wfacp-saving-amount td {
  order: 4;
  grid-column: 1 / -1;
  border-top: 1px solid #e4ddd4 !important;
}

.checkout-fk-page #wfacp-e-form #order_summary_field .order-total th,
.checkout-fk-page #wfacp-e-form #order_summary_field .order-total td {
  order: 5;
}

.checkout-fk-page #wfacp-e-form #order_summary_field .cart_item .product-name,
.checkout-fk-page #wfacp-e-form #order_summary_field .cart_item .product-name *,
.checkout-fk-page
  #wfacp-e-form
  #order_summary_field
  .wfacp_order_summary_item_total,
.checkout-fk-page
  #wfacp-e-form
  #order_summary_field
  .wfacp_order_summary_item_total
  *,
.checkout-fk-page #wfacp-e-form #order_summary_field .shipping th span,
.checkout-fk-page #wfacp-e-form #order_summary_field .shipping td,
.checkout-fk-page #wfacp-e-form #order_summary_field .wfacp_shipping_price,
.checkout-fk-page #wfacp-e-form #order_summary_field .tax-rate th,
.checkout-fk-page #wfacp-e-form #order_summary_field .tax-rate td,
.checkout-fk-page #wfacp-e-form #order_summary_field .tax-rate td *,
#wfacp-e-form table.shop_table.woocommerce-checkout-review-order-table tr td {
  font-family: "Inter", sans-serif !important;
  font-weight: 500 !important;
  font-size: 20px !important;
  line-height: 160% !important;
  letter-spacing: 0 !important;
  color: #575757 !important;
  padding: 7px 0 6px !important;
}

.checkout-fk-page #wfacp-e-form #order_summary_field .shipping td label,
.checkout-fk-page #wfacp-e-form #order_summary_field .wfacp_shipping_price {
  color: #29af5c !important;
}

.checkout-fk-page #wfacp-e-form #order_summary_field .wfacp-saving-amount svg,
.checkout-fk-page
  #wfacp-e-form
  #order_summary_field
  .shipping
  .wfacp_single_shipping
  label {
  display: none !important;
}

.checkout-fk-page
  #wfacp-e-form
  #order_summary_field
  .wfacp-saving-amount
  td
  > span {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding-left: 0px !important;
}

.checkout-fk-page #wfacp-e-form #order_summary_field .wfacp-saving-amount,
.checkout-fk-page #wfacp-e-form #order_summary_field .wfacp-saving-amount * {
  font-family: "Inter", sans-serif !important;
  font-weight: 600 !important;
  font-size: 20px !important;
  line-height: 160% !important;
  letter-spacing: 0 !important;
  color: #29af5c !important;
  padding: 14px 0 3px;
}

.checkout-fk-page #wfacp-e-form #order_summary_field .order-total th span {
  font-family: "Inter", sans-serif !important;
  font-weight: 600 !important;
  font-size: 24px !important;
  line-height: 160% !important;
  letter-spacing: 0 !important;
  color: #2a2a28 !important;
  padding-top: 12px;
}

.checkout-fk-page #wfacp-e-form #order_summary_field .order-total td,
.checkout-fk-page #wfacp-e-form #order_summary_field .order-total td * {
  font-family: Georgia, serif !important;
  font-weight: 700 !important;
  font-size: 24px !important;
  line-height: 160% !important;
  letter-spacing: 0 !important;
  text-align: right !important;
  color: #2a2a28 !important;
  padding-top: 12px;
}

/* ==========================================================================
   Payment + Place order button
   ========================================================================== */

.checkout-fk-page .wfacp-order-place-btn-wrap #place_order,
.checkout-fk-page #place_order {
  width: 100%;
  padding: 20px 24px;
  background: var(--cfk-gold) !important;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #fff !important;
  cursor: pointer;
}

.checkout-fk-page .wfacp-payment-dec {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: #8a8a86;
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 1023px) {
  .checkout-fk-page .wfacp-checkout-form-block {
    padding: 4px 16px 40px;
  }

  .checkout-fk-page .wfacp_product_switcher_item {
    font-size: 18px;
  }

  .checkout-fk-page .wfacp_product_price_sec ins {
    font-size: 22px;
  }
}

/* Hide table header (Products / Qty / Price), quick-view "?", qty ball & qty selector */
#product_switching_field .wfacp-product-switch-title,
#product_switching_field .wfacp_qv-button,
#product_switching_field .wfacp-qty-ball,
#product_switching_field .wfacp_product_quantity_container {
  display: none !important;
}

/* --- Card --- */

#product_switching_field fieldset.wfacp_product_row {
  position: relative;
  margin: 0 0 32px !important;
  padding: 24px 28px 28px !important;
  border: 1px solid #e5e0d8 !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  box-shadow: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

#product_switching_field fieldset.wfacp_product_row:last-child {
  margin-bottom: 0 !important;
}

/* Selected card — gold outline */
#product_switching_field fieldset.wfacp-selected-product {
  border-color: #cea860 !important;
  box-shadow: 0 0 0 1px #cea860 !important;
}

#product_switching_field .wfacp_row_wrap {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  padding: 0;
}

#product_switching_field .wfacp_ps_title_wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 18px;
  align-items: start;
}

#product_switching_field .wfacp_product_switcher_col_1 {
  display: contents !important;
}

#product_switching_field .wfacp_product_switcher_col_2 {
  grid-column: 2;
  grid-row: 1;
  padding: 0 !important;
}

#product_switching_field .product-image {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
  margin: 0 !important;
}

#product_switching_field .wfacp-pro-thumb img {
  width: auto !important;
  height: 101px !important;
  object-fit: contain;
}

/* --- Radio styled as a checkbox with a gold checkmark --- */

#wfacp-e-form #product_switching_field input.wfacp_product_switch {
  grid-column: 1;
  grid-row: 1;
  position: relative !important;
  left: auto !important;
  top: auto !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  margin: 4px 0 0 !important;
  padding: 0 !important;
  border: 1.5px solid #b9b3a9 !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  overflow: visible !important;
  cursor: pointer;
  transition: border-color 0.2s;
}

/* kill any dot the plugin draws via pseudo-elements */
#wfacp-e-form #product_switching_field input.wfacp_product_switch::before {
  content: none !important;
  display: none !important;
}

#wfacp-e-form #product_switching_field input.wfacp_product_switch:checked {
  border-color: #cea860 !important;
  background: #ffffff !important; /* shorthand also wipes any dot drawn as background-image */
  box-shadow: none !important;
}

/* Gold check, bigger than the box, overflowing past the top-right corner */
#wfacp-e-form
  #product_switching_field
  input.wfacp_product_switch:checked::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  top: auto !important;
  right: auto !important;
  left: 2px !important;
  bottom: 1px !important;
  width: 27px !important;
  height: 27px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  transform: none !important;
  box-shadow: none !important;
  background: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='%23CEA860' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 16l7 8L24 3'/%3E%3C/svg%3E")
    no-repeat center / contain !important;
  pointer-events: none;
}

#product_switching_field input.wfacp_product_switch:focus-visible {
  outline: 2px solid #cea860;
  outline-offset: 2px;
}

/* --- Title & subtitle --- */

/* Two IDs + !important: the plugin (wfacp-form.css) hits this span with
   `#wfacp-e-form .wfacp_row_wrap .product-name .wfacp_product_sec span
   { font-size: 14px }` — a plain one-id selector would lose. */
#wfacp-e-form #product_switching_field .wfacp_product_switcher_item {
  font-family: "Inter", sans-serif !important;
  font-weight: 600 !important;
  font-size: 24px !important;
  line-height: 140% !important;
  letter-spacing: 0 !important;
  text-transform: capitalize !important;
  color: #2a2a28 !important;
}

#product_switching_field .wfacp_ps_div_row {
  margin-top: 8px;
}

/* `span` included: the plugin paints inner spans (the $79/bottle amount in
   cards 2–3) red 14px via `... .wfacp_you_save_text span { color:#b22323 }`. */
#wfacp-e-form #product_switching_field .wfacp_you_save_text,
#wfacp-e-form #product_switching_field .wfacp_you_save_text span {
  font-family: "Inter", sans-serif !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  line-height: 120% !important;
  letter-spacing: 0 !important;
  color: #575757 !important;
}

/* --- Price block (right side) --- */

#product_switching_field .wfacp_product_sec_start {
  flex: 0 0 auto;
  margin-left: auto;
}

#product_switching_field .wfacp_product_switcher_col_3 {
  display: flex !important;
  flex-direction: column;
  align-items: flex-end;
}

#wfacp-e-form #product_switching_field .wfacp_product_price_container {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 8px;
  text-align: right !important;
}

/* Pin the generated lines ("You Save …", "FREE SHIPPING") to the right edge:
   align-self on the flex item wins over any align-items coming from the
   plugin/template CSS. */
#wfacp-e-form #product_switching_field .wfacp_product_price_container::before,
#wfacp-e-form #product_switching_field .wfacp_product_price_container::after {
  align-self: flex-end !important;
  margin-left: auto !important;
  text-align: right !important;
}

#product_switching_field .wfacp_product_price_sec {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  order: 1;
}

/* "Regular Price $79".
   Font props are applied to the inner spans/bdi too: the actual text sits in
   span.amount, and the plugin sets font-size directly on those spans
   (a direct value on the span always beats one inherited from del/ins). */
#wfacp-e-form #product_switching_field .wfacp_product_price_sec del,
#wfacp-e-form #product_switching_field .wfacp_product_price_sec del span,
#wfacp-e-form #product_switching_field .wfacp_product_price_sec del bdi {
  font-family: "Inter", sans-serif !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  line-height: 120% !important;
  letter-spacing: 0 !important;
  color: #8b8b8b !important;
}

#wfacp-e-form #product_switching_field .wfacp_product_price_sec del {
  text-decoration: none !important;
  text-align: right;
}

#product_switching_field .wfacp_product_price_sec del::before {
  content: "Regular Price\00a0";
}

#product_switching_field .wfacp_product_price_sec del .amount {
  text-decoration: line-through;
  color: #8b8b8b;
}

/* "Limited Time: $39" — same trick: hit the inner spans directly. */
#wfacp-e-form #product_switching_field .wfacp_product_price_sec ins,
#wfacp-e-form #product_switching_field .wfacp_product_price_sec ins span,
#wfacp-e-form #product_switching_field .wfacp_product_price_sec ins bdi {
  font-family: "Inter", sans-serif !important;
  font-weight: 700 !important;
  font-size: 26px !important;
  line-height: 120% !important;
  letter-spacing: 0 !important;
}

#wfacp-e-form #product_switching_field .wfacp_product_price_sec ins {
  text-decoration: none !important;
  background: none !important;
  text-align: right;
  color: #2a2a28 !important;
}

#product_switching_field .wfacp_product_price_sec ins::before {
  content: "Limited Time:\00a0";
}

/* $39 — gold (incl. the $ symbol). Beats `#wfacp-e-form ins span.amount { color:#666 }`. */
#wfacp-e-form #product_switching_field .wfacp_product_price_sec ins .amount,
#wfacp-e-form #product_switching_field .wfacp_product_price_sec ins .amount * {
  color: #cea860 !important;
}

/* Savings line (green, per card). Update the numbers here if prices change. */
#product_switching_field .wfacp_product_price_container::before {
  order: 2;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  color: #29af5c;
  text-decoration: underline;
  text-decoration-skip-ink: auto;
  text-underline-offset: 3px;
}

#product_switching_field
  fieldset[data-id="26"]
  .wfacp_product_price_container::before {
  content: "You Save 51%";
}

#product_switching_field
  fieldset[data-id="27"]
  .wfacp_product_price_container::before {
  content: "Save 50% \2014 $79 off";
}

#product_switching_field
  fieldset[data-id="28"]
  .wfacp_product_price_container::before {
  content: "Save 63% \2014 $149 off";
}

/* "FREE SHIPPING" line */
#product_switching_field .wfacp_product_price_container::after {
  order: 3;
  content: "FREE SHIPPING";
  padding-left: 30px;
  background: url("../img/FreeShipping.png") left center / 22px auto no-repeat;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: #cea860;
}

/* ==========================================================================
   Overrides for plugin styles (wfacp-form.css) — Step 1 product switcher.
   The plugin uses high-specificity selectors like
   `body .wfacp_main_form #product_switching_field.wfacp_for_desktop_tablet ...`,
   so these selectors mirror/outrank them.
   ========================================================================== */

/* Left part (checkbox + title + image).
   Plugin forces flex: 0 0 60%/65% + max-width 60%/65% — reset and cap at 350px. */
body .wfacp_main_form #product_switching_field .wfacp_ps_title_wrap,
body
  .wfacp_main_form
  #product_switching_field.wfacp_for_desktop_tablet
  .wfacp_ps_title_wrap,
body
  #wfacp-e-form
  .wfacp_main_form
  #product_switching_field
  .wfacp_ps_title_wrap {
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0;
}

/* Right part (price block).
   Plugin forces flex: 0 0 35%/40% + max-width — let it size to content. */
body .wfacp_main_form #product_switching_field .wfacp_product_sec_start,
body
  .wfacp_main_form
  #product_switching_field.wfacp_for_desktop_tablet
  .wfacp_product_sec_start,
body
  #wfacp-e-form
  .wfacp_main_form
  #product_switching_field
  .wfacp_product_sec_start {
  flex: 0 1 auto !important;
  width: auto !important;
  max-width: none !important;
  margin-left: auto !important;
}

@media (min-width: 768px) {
  body .wfacp_main_form #product_switching_field .wfacp_product_sec_start,
  body
    .wfacp_main_form
    #product_switching_field.wfacp_for_desktop_tablet
    .wfacp_product_sec_start,
  body
    #wfacp-e-form
    .wfacp_main_form
    #product_switching_field
    .wfacp_product_sec_start {
    min-width: 270px !important;
  }
}

body
  .wfacp_main_form
  #product_switching_field
  .wfacp_product_switcher_col_3
  .product-price,
body
  .wfacp_main_form
  #product_switching_field.wfacp_for_desktop_tablet
  .wfacp_product_switcher_col_3
  .product-price,
body
  .wfacp_main_form
  #product_switching_field.wfacp_for_desktop_tablet.wfacp_for_mb_style
  .wfacp_product_switcher_col_3
  .product-price {
  width: auto !important;
  padding-left: 0 !important;
}

/* Product image wrapper: plugin squeezes it to 60–70px and floats it
   (`.wfacp_form_cart .cart_item .product-image`) — reset so the thumb
   is sized by its img (height: 170px, see above). */
body
  #wfacp-e-form
  .wfacp_main_form
  #product_switching_field
  .cart_item
  .product-image,
body .wfacp_form_cart #product_switching_field .cart_item .product-image {
  float: none !important;
  width: auto !important;
  max-width: none !important;
}
body
  .wfacp_main_form
  #product_switching_field
  .wfacp_product_switcher_col_1
  .product-image {
  border: none !important;
}

/* --- Mobile --- */

@media (max-width: 1024px) {
  .wfacp_checkout-template-templates {
    background-color: #fff;
  }
  .checkout-page_bottom-colums {
    flex-direction: column;
    gap: 0;
  }
  .checkout-page_bottom-colums .wp-block-column:first-of-type {
    display: none;
  }
  .checkout-fk-page #order_summary_field .wfacp_order_summary_container {
    margin-bottom: 40px;
  }
}
@media (max-width: 767px) {
  .checkout-fk-page .wfacp-checkout-form-block {
    padding: 0px 20px;
  }
  .checkout-fk-page #wfacp-e-form .wfacp-comm-title h2 {
    font-size: 20px !important;
  }

  #product_switching_field fieldset.wfacp_product_row {
    padding: 18px 16px 20px !important;
    border-radius: 18px !important;
    margin-bottom: 0px !important;
  }

  #product_switching_field fieldset[data-id="27"],
  #product_switching_field fieldset[data-id="28"] {
    margin-top: 17px !important;
  }

  #product_switching_field fieldset[data-id="27"]::before,
  #product_switching_field fieldset[data-id="28"]::before {
    left: 14px;
    top: -14px;
    padding: 3px 11px;
    font-size: 14px;
  }

  #product_switching_field .wfacp_ps_title_wrap {
    grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 12px;
  }
  #wfacp-e-form #product_switching_field input.wfacp_product_switch {
    width: 15px !important;
    height: 15px !important;
    min-width: 15px !important;
  }
  #wfacp-e-form
    #product_switching_field
    input.wfacp_product_switch:checked::after {
    left: -1px !important;
    bottom: 0px !important;
    width: 20px !important;
    height: 20px !important;
  }
  body
    #wfacp-e-form
    .wfacp_main_form
    #product_switching_field
    .wfacp_ps_title_wrap {
    gap: 2px;
  }
  #product_switching_field .wfacp_ps_div_row {
    margin-top: 0px;
  }
  #wfacp-e-form #product_switching_field input.wfacp_product_switch {
    margin-top: 3px !important;
  }

  #wfacp-e-form #product_switching_field .wfacp_product_switcher_item {
    font-size: 16px !important;
  }

  #wfacp-e-form #product_switching_field .wfacp_you_save_text,
  #wfacp-e-form #product_switching_field .wfacp_you_save_text span {
    font-size: 14px !important;
  }

  #product_switching_field .wfacp_product_sec_start {
    width: 100%;
    margin-left: 0;
    position: absolute;
    bottom: 0;
    right: 0;
  }

  #wfacp-e-form #product_switching_field .wfacp_product_price_sec del,
  #wfacp-e-form #product_switching_field .wfacp_product_price_sec del span,
  #wfacp-e-form #product_switching_field .wfacp_product_price_sec del bdi,
  #product_switching_field .wfacp_product_price_sec del::before {
    font-size: 14px !important;
    color: #2a2a28 !important;
  }
  #product_switching_field .wfacp_product_price_sec del::before {
    content: "Regular\00a0";
  }

  #wfacp-e-form #product_switching_field .wfacp_product_price_sec ins,
  #wfacp-e-form #product_switching_field .wfacp_product_price_sec ins span,
  #wfacp-e-form #product_switching_field .wfacp_product_price_sec ins bdi {
    font-size: 16px !important;
  }
  #product_switching_field .wfacp_product_price_sec ins::before {
    font-size: 18px;
  }
  #product_switching_field .wfacp_product_price_container::before {
    font-size: 16px;
  }

  #product_switching_field .wfacp_product_price_container::after {
    font-size: 16px;
    padding-left: 40px;
    background-size: 26px auto;
  }
  body
    .wfacp_main_form
    #product_switching_field.wfacp_for_desktop_tablet.wfacp_for_mb_style
    .woocommerce-cart-form__cart-item.cart_item {
    padding: 18px 16px;
  }
  #wfacp-e-form #product_switching_field .wfacp_product_price_container {
    gap: 2px;
  }
  #product_switching_field .wfacp_product_price_sec {
    gap: 8px;
  }
  #product_switching_field .wfacp_product_price_container::after {
    margin-top: 4px;
  }
  #product_switching_field fieldset[data-id="28"]::before {
    left: 16px;
    padding: 3px 9px;
  }
  .checkout-fk-page #wfacp-e-form #order_summary_field .cart_item .product-name,
  .checkout-fk-page
    #wfacp-e-form
    #order_summary_field
    .cart_item
    .product-name
    *,
  .checkout-fk-page
    #wfacp-e-form
    #order_summary_field
    .wfacp_order_summary_item_total,
  .checkout-fk-page
    #wfacp-e-form
    #order_summary_field
    .wfacp_order_summary_item_total
    *,
  .checkout-fk-page #wfacp-e-form #order_summary_field .shipping th span,
  .checkout-fk-page #wfacp-e-form #order_summary_field .shipping td,
  .checkout-fk-page #wfacp-e-form #order_summary_field .wfacp_shipping_price,
  .checkout-fk-page #wfacp-e-form #order_summary_field .tax-rate th,
  .checkout-fk-page #wfacp-e-form #order_summary_field .tax-rate td,
  .checkout-fk-page #wfacp-e-form #order_summary_field .tax-rate td *,
  #wfacp-e-form table.shop_table.woocommerce-checkout-review-order-table tr td {
    font-size: 16px !important;
    padding: 0px 0 6px !important;
  }
  .checkout-fk-page #wfacp-e-form #order_summary_field .wfacp-saving-amount,
  .checkout-fk-page #wfacp-e-form #order_summary_field .wfacp-saving-amount * {
    font-size: 16px !important;
    padding: 4px 0 !important;
  }
  .checkout-fk-page #wfacp-e-form #order_summary_field .order-total th span,
  .checkout-fk-page #wfacp-e-form #order_summary_field .order-total td,
  .checkout-fk-page #wfacp-e-form #order_summary_field .order-total td * {
    font-size: 20px !important;
    padding: 0px !important;
  }
  .checkout-fk-page #order_summary_field .wfacp_order_summary_container {
    padding: 16px;
  }
  .checkout-fk-page
    #wfacp-e-form
    #order_summary_field
    table.shop_table.woocommerce-checkout-review-order-table {
    column-gap: 0px;
  }
  body
    #wfacp-e-form
    table.shop_table.woocommerce-checkout-review-order-table
    tfoot
    tr:nth-last-child(2)
    td,
  body
    #wfacp-e-form
    table.shop_table.woocommerce-checkout-review-order-table
    tfoot
    tr:nth-last-child(2)
    th {
    padding: 0 !important;
  }
}
