/*
 * AA Tunnel — checkout select2 fixes (enqueued only on the checkout, never the order-received page).
 * Scoped to body.woocommerce-checkout because select2 renders its dropdown at the end of <body>.
 *
 * (a) Double chevron: WooLentor draws a border chevron on `.select2-selection__arrow b` and WooCommerce 11
 *     paints its own SVG background on the same <b>. Keep WooLentor's, drop WooCommerce's.
 * (b) Country/State dropdown: compact options (~36px rows) and a normal 40px search input.
 */

/* (a) one chevron only */
body.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__arrow b {
  background-image: none !important;
}

/* (b) dropdown */
body.woocommerce-checkout .select2-dropdown {
  font-size: 15px;
}
body.woocommerce-checkout .select2-dropdown .select2-search--dropdown {
  padding: 8px;
}
body.woocommerce-checkout .select2-dropdown .select2-search--dropdown .select2-search__field {
  box-sizing: border-box;
  height: 40px;
  min-height: 0;
  padding: 0 12px;
  margin: 0;
  font-size: 15px;
  line-height: 40px;
  border-radius: 6px;
  border: 1px solid #D9D9D9;
  background: #fff;
}
body.woocommerce-checkout .select2-dropdown .select2-results__options {
  margin: 0;
  padding: 0;
}
body.woocommerce-checkout .select2-dropdown .select2-results__option {
  box-sizing: border-box;
  min-height: 36px;
  margin: 0 !important;
  padding: 8px 12px !important;
  font-size: 15px;
  line-height: 20px;
}

/*
 * (c) Billing field layout (row pairs; classes + priorities come from includes/class-aa-checkout-layout.php).
 * WooLentor lays the billing wrapper out as flex and sizes form-row-first/-last as halves
 * (flex: 1 0 calc(50% - 10px); max-width: calc(50% - 10px)), WooCommerce core floats them at 47%; both already
 * produce the pairs, so no width is forced here. These rules cover the cases the class list cannot express.
 */
@media (min-width: 601px) {
  /* Country alone on its row when its partner, the state field, is hidden (countries without states). */
  body.woocommerce-checkout #billing_country_field.form-row-first:has(+ #billing_state_field[style*="display: none"]),
  body.woocommerce-checkout #billing_country_field.form-row-first:has(+ #billing_state_field[style*="display:none"]),
  body.woocommerce-checkout #billing_country_field.form-row-first:has(+ #billing_state_field.hidden),
  body.woocommerce-checkout #billing_country_field.form-row-first:has(+ #billing_state_field[hidden]) {
    float: none;
    clear: both;
    width: 100%;
    max-width: 100%;
    flex-basis: 100%;
  }
  /* A lone half-width field at the end of the wrapper (e.g. Phone when no Website field exists) spans the row. */
  body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > #billing_phone_field.form-row-first:last-child {
    float: none;
    clear: both;
    width: 100%;
    max-width: 100%;
    flex-basis: 100%;
  }
}
/* Everything stacks on phones. */
@media (max-width: 600px) {
  body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row-first,
  body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row-last,
  body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row-wide {
    float: none;
    clear: both;
    width: 100%;
    max-width: 100%;
    flex-basis: 100%;
  }
}

/*
 * (d) select2 (Country / State): our colours instead of select2's default blue.
 * The dropdown is appended to <body>, hence the body.woocommerce-checkout scope.
 */
body.woocommerce-checkout .select2-container--open .select2-selection--single,
body.woocommerce-checkout .select2-container--focus .select2-selection--single {
  border-color: #111111 !important;
  outline: 0;
}
body.woocommerce-checkout .select2-container--open .select2-dropdown {
  border: 1px solid #111111;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none;
}
body.woocommerce-checkout .select2-container--open .select2-dropdown--below { border-top-color: #111111; }
body.woocommerce-checkout .select2-container--open .select2-dropdown--above { border-bottom-color: #111111; }
body.woocommerce-checkout .select2-container--default .select2-results__option {
  color: #111111;
  background: #fff;
}
body.woocommerce-checkout .select2-container--default .select2-results__option--highlighted[aria-selected],
body.woocommerce-checkout .select2-container--default .select2-results__option--highlighted[data-selected],
body.woocommerce-checkout .select2-container--default .select2-results__option--highlighted {
  background: #F6F1EE !important;
  color: #111111 !important;
}
body.woocommerce-checkout .select2-container--default .select2-results__option[aria-selected="true"],
body.woocommerce-checkout .select2-container--default .select2-results__option[data-selected="true"] {
  background: #EAECEC !important;
  color: #111111 !important;
  font-weight: 600;
}
body.woocommerce-checkout .select2-container--default .select2-results__option--highlighted[aria-selected="true"] {
  background: #EAECEC !important;
}
body.woocommerce-checkout .select2-dropdown .select2-search--dropdown .select2-search__field {
  background: #fff;
  border: 1px solid #B9C7C7;
  border-radius: 10px;
}
body.woocommerce-checkout .select2-dropdown .select2-search--dropdown .select2-search__field:focus {
  border-color: #111111;
  outline: 0;
  box-shadow: none;
}

/*
 * (e) Order summary card (website checkout, WooLentor review order): one rhythm, three blocks.
 *     product row | hairline | "due today" | hairline | "after your trial". Markup is untouched.
 */
body.woocommerce-checkout .woocommerce-checkout-review-order.woolentor-review-order-1 .woolentor-order-review-content {
  border: 1px solid #E4E1DC;
  border-radius: 12px;
  box-shadow: none;
  background: #fff;
  overflow: hidden;
}
/* product row */
body.woocommerce-checkout .woolentor-review-order-1 .woolentor-products { padding: 0 !important; margin: 0 !important; border: 0; }
body.woocommerce-checkout .woolentor-review-order-1 .woolentor-product {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px !important;
  margin: 0 !important;
  border: 0;
}
body.woocommerce-checkout .woolentor-review-order-1 .woolentor-product-thumb {
  position: relative;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  margin: 0;
}
body.woocommerce-checkout .woolentor-review-order-1 .woolentor-product-thumb img {
  display: block;
  border: 0;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
}
body.woocommerce-checkout .woolentor-review-order-1 .woolentor-product-content { flex: 1 1 auto; min-width: 0; padding: 0; margin: 0; }
body.woocommerce-checkout .woolentor-review-order-1 .woolentor-product-content-top { margin: 0; padding: 0; }
body.woocommerce-checkout .woolentor-review-order-1 .woolentor-product-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: #111111;
}
body.woocommerce-checkout .woolentor-review-order-1 .woolentor-product-content dl.variation {
  display: block;
  margin: 4px 0 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #4F5656;
}
body.woocommerce-checkout .woolentor-review-order-1 .woolentor-product-content dl.variation dt,
body.woocommerce-checkout .woolentor-review-order-1 .woolentor-product-content dl.variation dd,
body.woocommerce-checkout .woolentor-review-order-1 .woolentor-product-content dl.variation dd p {
  display: inline;
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 400;
  color: #4F5656;
  text-transform: none;
}
body.woocommerce-checkout .woolentor-review-order-1 .woolentor-product-content dl.variation dt::after { content: ""; }
body.woocommerce-checkout .woolentor-review-order-1 .woolentor-product-content dl.variation dt { margin-right: 4px; }
/* the orphan qty + price line: the trial line / subtotal already carry the price */
body.woocommerce-checkout .woolentor-review-order-1 .woolentor-product-content-bottom { display: none; }

/* totals table */
body.woocommerce-checkout .woolentor-review-order-1 .woolentor-shop-table { margin: 0; padding: 0; }
body.woocommerce-checkout .woolentor-review-order-1 table.shop_table {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
}
body.woocommerce-checkout .woolentor-review-order-1 table.shop_table tfoot { display: block; width: 100%; padding: 0; }
body.woocommerce-checkout .woolentor-review-order-1 table.shop_table tfoot tr {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px 8px;
  margin: 0;
  border: 0;
  background: transparent;
}
body.woocommerce-checkout .woolentor-review-order-1 table.shop_table tfoot th,
body.woocommerce-checkout .woolentor-review-order-1 table.shop_table tfoot td {
  display: block;
  padding: 0 !important;
  margin: 0;
  border: 0 !important;
  background: transparent;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  text-align: left;
  color: #4F5656;
  text-transform: none;
}
body.woocommerce-checkout .woolentor-review-order-1 table.shop_table tfoot td {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #111111;
}
body.woocommerce-checkout .woolentor-review-order-1 table.shop_table tfoot td::before { content: none; }
body.woocommerce-checkout .woolentor-review-order-1 table.shop_table tfoot td strong { font-weight: 600; }
/* empty spacer rows WooCommerce / WooLentor leave in the table */
body.woocommerce-checkout .woolentor-review-order-1 table.shop_table tfoot tr.woocommerce-shipping-totals:not(:has(*)),
body.woocommerce-checkout .woolentor-review-order-1 table.shop_table tfoot tr.woolentor-save { display: none; }

/* block 1 "due today": first row opens with a hairline + 16px, last row closes with 16px of its own */
body.woocommerce-checkout .woolentor-review-order-1 table.shop_table tfoot tr.cart-subtotal:not(.recurring-total) {
  border-top: 1px solid #E4E1DC;
  padding-top: 16px;
}
body.woocommerce-checkout .woolentor-review-order-1 table.shop_table tfoot tr.order-total:not(.recurring-total) { padding-bottom: 16px; }
body.woocommerce-checkout .woolentor-review-order-1 table.shop_table tfoot tr.order-total th,
body.woocommerce-checkout .woolentor-review-order-1 table.shop_table tfoot tr.order-total td {
  font-weight: 600;
  color: #111111;
}
/* "Total" reads "Total due today" on the first-payment row (CSS label: markup untouched) */
body.woocommerce-checkout .woolentor-review-order-1 table.shop_table tfoot tr.order-total:not(.recurring-total) th {
  font-size: 0 !important;
}
body.woocommerce-checkout .woolentor-review-order-1 table.shop_table tfoot tr.order-total:not(.recurring-total) th::before {
  content: "Total due today";
  font-size: 14px !important;
  font-weight: 600;
  color: #111111;
}
html[lang^="de"] body.woocommerce-checkout .woolentor-review-order-1 table.shop_table tfoot tr.order-total:not(.recurring-total) th::before { content: "Heute fällig"; }

/* block 2 "after your trial" */
body.woocommerce-checkout .woolentor-review-order-1 table.shop_table tfoot tr.recurring-totals {
  display: block;
  border-top: 1px solid #E4E1DC;
  padding: 16px 16px 8px;
}
body.woocommerce-checkout .woolentor-review-order-1 table.shop_table tfoot tr.recurring-totals th {
  font-size: 0 !important;
  line-height: 0;
}
body.woocommerce-checkout .woolentor-review-order-1 table.shop_table tfoot tr.recurring-totals th::before {
  content: "Then every month";
  font-size: 12px !important;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #718080;
}
html[lang^="de"] body.woocommerce-checkout .woolentor-review-order-1 table.shop_table tfoot tr.recurring-totals th::before { content: "Danach monatlich"; }
body.woocommerce-checkout .woolentor-review-order-1 table.shop_table tfoot tr.recurring-total th[rowspan] { width: auto; }
body.woocommerce-checkout .woolentor-review-order-1 table.shop_table tfoot tr.order-total.recurring-total { padding-bottom: 16px; }
body.woocommerce-checkout .woolentor-review-order-1 table.shop_table tfoot tr.order-total.recurring-total td {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  column-gap: 2px;
}
body.woocommerce-checkout .woolentor-review-order-1 table.shop_table tfoot tr.recurring-total td { font-weight: 400; }
body.woocommerce-checkout .woolentor-review-order-1 table.shop_table tfoot tr.order-total.recurring-total td { font-weight: 600; }
body.woocommerce-checkout .woolentor-review-order-1 table.shop_table tfoot tr.recurring-total .first-payment-date {
  flex: 0 0 100%;
  margin: 8px 0 0;
  text-align: right;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: #718080;
}
body.woocommerce-checkout .woolentor-review-order-1 table.shop_table tfoot tr.recurring-total .first-payment-date small { font-size: 13px; color: inherit; }

/*
 * (f) Coupon row under the summary (WooLentor coupon form): one quiet line, opens to input + outline button.
 *     WooCommerce's coupon form / AJAX is untouched; labels are swapped with CSS (the DOM text stays for screen readers).
 */
body.woocommerce-checkout .woolentor-checkout-coupon-form { margin: 0; padding: 0; }
/* even 16px rhythm between the summary card, the social-proof row and the coupon row (Elementor widgets default to 20px) */
body.woocommerce-checkout .elementor-widget-wrap:has(.woolentor-review-order-1) > .elementor-widget { margin-bottom: 16px; }
body.woocommerce-checkout .elementor-widget-wrap:has(.woolentor-review-order-1) > .elementor-widget:last-child { margin-bottom: 0; }
body.woocommerce-checkout .woolentor-checkout-coupon-form .checkout-coupon-toggle { margin: 0; padding: 0; border: 0; }
body.woocommerce-checkout .woolentor-checkout-coupon-form .woocommerce-info {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 6px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.5;
  color: #4F5656;
}
body.woocommerce-checkout .woolentor-checkout-coupon-form .woocommerce-info::before,
body.woocommerce-checkout .woolentor-checkout-coupon-form .woocommerce-info::after { display: none !important; content: none !important; }
body.woocommerce-checkout .woolentor-checkout-coupon-form .woocommerce-info a.show-coupon {
  font-size: 0 !important;
  line-height: 1.5;
  text-decoration: none;
}
body.woocommerce-checkout .woolentor-checkout-coupon-form .woocommerce-info a.show-coupon::after {
  content: "Enter code \203A";
  font-size: 14px;
  font-weight: 600;
  color: #247973;
  white-space: nowrap;
}
html[lang^="de"] body.woocommerce-checkout .woolentor-checkout-coupon-form .woocommerce-info a.show-coupon::after { content: "Code eingeben \203A"; }

body.woocommerce-checkout .woolentor-checkout-coupon-form .coupon-form {
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  align-items: center;
  gap: 8px;
}
body.woocommerce-checkout .woolentor-checkout-coupon-form .coupon-form:not([style*="display: none"]):not([style*="display:none"]) { display: flex !important; flex-wrap: nowrap; }
body.woocommerce-checkout .woolentor-checkout-coupon-form .coupon-form .woolentor-info { display: none; }
body.woocommerce-checkout .woolentor-checkout-coupon-form .coupon-form .clear { display: none; }
body.woocommerce-checkout .woolentor-checkout-coupon-form .coupon-form p.form-row {
  float: none;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}
body.woocommerce-checkout .woolentor-checkout-coupon-form .coupon-form p.form-row-first { flex: 1 1 auto; min-width: 0; }
body.woocommerce-checkout .woolentor-checkout-coupon-form .coupon-form p.form-row-last { flex: 0 0 auto; }
body.woocommerce-checkout .woolentor-checkout-coupon-form .coupon-form input.input-text {
  box-sizing: border-box;
  width: 100%;
  height: 36px;
  min-height: 0;
  margin: 0;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #B9C7C7;
  border-radius: 5px;
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  line-height: 34px;
  color: #111111;
}
body.woocommerce-checkout .woolentor-checkout-coupon-form .coupon-form input.input-text:focus { border-color: #111111; outline: 0; }
/* Same geometry as the app's Button (and the account skin): 36px, 16px side padding, 13px/600, 8px radius, label centred. */
body.woocommerce-checkout .woolentor-checkout-coupon-form .coupon-form button.button {
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 36px !important;
  min-height: 0 !important;
  margin: 0;
  padding: 0 16px !important;
  background: transparent;
  border: 1px solid #111111;
  border-radius: 5px;
  box-shadow: none;
  color: #111111;
  font-family: 'DM Sans', system-ui, sans-serif !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
body.woocommerce-checkout .woolentor-checkout-coupon-form .coupon-form button.button::before {
  content: "Apply";
  display: block;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: #111111;
  text-box: trim-both cap alphabetic;
}
html[lang^="de"] body.woocommerce-checkout .woolentor-checkout-coupon-form .coupon-form button.button::before { content: "Anwenden"; }
body.woocommerce-checkout .woolentor-checkout-coupon-form .coupon-form button.button:hover { background: #F6F1EE; }
body.woocommerce-checkout .woolentor-checkout-coupon-form .coupon-form button.button:focus-visible { outline: 0; border-color: #111111; background: #F6F1EE; }

/* (g) Address line 2 sits directly under Street (8px) so it reads as part of the address. */
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > #billing_address_2_field { margin-top: -8px; }

/* th: the label never wraps ("Recurring total") */
body.woocommerce-checkout .woolentor-review-order-1 table.shop_table tfoot th { flex: 0 0 auto; white-space: nowrap; }
/* the social-proof (Senja) widget carries its own 21px / 32px container padding; drop it so the 16px rhythm is true */
body.woocommerce-checkout .elementor-widget-wrap:has(.woolentor-review-order-1) .elementor-widget-container:has(> .senja-embed) { padding: 0 !important; }

/* "After your trial" only while a trial line is shown (body.aa-has-trial from aa-checkout.js); otherwise "Then every month". */
body.woocommerce-checkout.aa-has-trial .woolentor-review-order-1 table.shop_table tfoot tr.recurring-totals th::before { content: "After your trial"; }
html[lang^="de"] body.woocommerce-checkout.aa-has-trial .woolentor-review-order-1 table.shop_table tfoot tr.recurring-totals th::before { content: "Nach der Testphase"; }

/* ONE border around the order summary: ours (the review card). The Elementor widget container that wraps the WooLentor
   widget draws its own 1px #DEDEDE / 5px frame ~1px outside the card, so it is cleared. */
body.woocommerce-checkout .elementor-widget-wrap:has(.woolentor-review-order-1) > .elementor-widget > .elementor-widget-container:has(.woolentor-review-order-1) {
  border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 0 !important; margin: 0 !important; border-radius: 0 !important; outline: 0 !important;
}

/* No browser focus ring on the select2 (Country / State): the brand border (#111) is the only focus signal.
   The open selection and the body-appended dropdown otherwise carry a blue `outline: 1px solid rgb(0,95,204)`. */
body.woocommerce-checkout .select2-container .select2-selection,
body.woocommerce-checkout .select2-container .select2-selection:focus,
body.woocommerce-checkout .select2-container .select2-selection:focus-visible,
body.woocommerce-checkout .select2-container--open .select2-selection--single,
body.woocommerce-checkout .select2-container--focus .select2-selection--single,
body.woocommerce-checkout .select2-container--open .select2-dropdown,
body.woocommerce-checkout .select2-container--open .select2-dropdown:focus,
body.woocommerce-checkout .select2-dropdown .select2-search__field,
body.woocommerce-checkout .select2-dropdown .select2-search__field:focus,
body.woocommerce-checkout .select2-dropdown .select2-search__field:focus-visible,
body.woocommerce-checkout .select2-results__options,
body.woocommerce-checkout .select2-results__options:focus { outline: none !important; box-shadow: none !important; }
body.woocommerce-checkout .select2-container--open .select2-selection--single,
body.woocommerce-checkout .select2-container--open .select2-dropdown { border-color: #111111 !important; }

/* ══════════════════════════════════════════════════════════════════════════════════════════════════════════
   CART page (WooLentor cart widgets; also what the app's Shop embeds): the same touches as the checkout.
   Product card | Voucher row | totals card | one primary button. Markup untouched.
   ══════════════════════════════════════════════════════════════════════════════════════════════════════════ */

/* Section titles: left, 15px/600 interface type (not the display face), one rhythm (title -> 12px -> content). */
body.woocommerce-checkout:has(.cart_totals) .elementor-widget-heading .elementor-heading-title,
body.woocommerce-checkout .woolentor-coupon-1 h3.woolentor-title,
body.woocommerce-checkout .cart_totals > h2 {
  margin: 0 0 12px !important; padding: 0 !important; text-align: left !important; text-transform: none !important; letter-spacing: 0 !important;
  font: 600 15px/1.3 'DM Sans', system-ui, sans-serif !important; color: #111111 !important;
}
body.woocommerce-checkout .elementor-widget-heading:has(+ .elementor-widget .woolentor-cart-list) { margin-bottom: 0 !important; }
body.woocommerce-checkout .elementor-widget-wl-checkout-coupon-form:has(+ .elementor-widget .cart_totals) { margin-bottom: 24px !important; }
body.woocommerce-checkout .elementor-widget-wl-cart-total { text-align: left; margin-bottom: 0 !important; }
body.woocommerce-checkout .cart_totals { width: 100%; float: none; padding: 0; margin: 0; }

/* Product card: white, 1px hairline, 12px radius, 16px padding, 96px thumbnail, no beige fill. */
body.woocommerce-checkout .woolentor-cart-list .woolentor-cart-product {
  display: flex; align-items: center; gap: 16px; padding: 16px !important; margin: 0;
  background: #fff !important; border: 1px solid #E4E1DC !important; border-radius: 12px !important; box-shadow: none;
}
body.woocommerce-checkout .woolentor-cart-list .woolentor-cart-product > .product-thumbnail {
  flex: 0 0 96px; width: 96px !important; height: 96px; margin: 0; border-radius: 12px; overflow: hidden;
}
body.woocommerce-checkout .woolentor-cart-list .woolentor-cart-product > .product-thumbnail img {
  display: block; width: 96px !important; height: 96px !important; max-width: none; object-fit: cover; border-radius: 12px;
}
body.woocommerce-checkout .woolentor-cart-list .woolentor-cart-product-content {
  flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
body.woocommerce-checkout .woolentor-cart-list .woolentor-cart-product-content-left { flex: 1 1 auto; min-width: 0; padding: 0; margin: 0; display: block !important; height: auto !important; }
body.woocommerce-checkout .woolentor-cart-list .woolentor-product-name {
  margin: 0; font: 600 15px/1.3 'DM Sans', system-ui, sans-serif; color: #111111;
}
/* quantity is always 1 (plans): no "x 1", no "Qty" block. The hidden qty input stays in the DOM and is submitted. */
body.woocommerce-checkout .woolentor-cart-list strong.product-quantity,
body.woocommerce-checkout .woolentor-cart-list .woolentor-product-quantity { display: none !important; }
body.woocommerce-checkout .woolentor-cart-list .product-name { margin: 0; padding: 0; font-size: 0; }
body.woocommerce-checkout .woolentor-cart-list .woolentor-order-item-title,
body.woocommerce-checkout .woolentor-cart-list .product-title { display: block; margin: 0; padding: 0; }
body.woocommerce-checkout .woolentor-cart-list small.aa-trial-note {
  display: block; margin: 4px 0 0; font: 400 13px/1.4 'DM Sans', system-ui, sans-serif; color: #4F5656;
}
body.woocommerce-checkout .woolentor-cart-list .woolentor-cart-product-meta-wrapper:empty { display: none; }
body.woocommerce-checkout .woolentor-cart-list .woolentor-product-price {
  display: block; margin: 4px 0 0; font: 400 13px/1.4 'DM Sans', system-ui, sans-serif; color: #4F5656;
}
body.woocommerce-checkout .woolentor-cart-list .woolentor-product-price .product-price { font: inherit; color: inherit; }
/* a plan with a trial already states its price in the trial line: drop the separate price line */
body.woocommerce-checkout .woolentor-cart-list .woolentor-cart-product-content-left:has(.aa-trial-note) .woolentor-product-price { display: none; }

/* Voucher: input + outline Apply, one row (same as the checkout coupon row). WooLentor paints the button black. */
body.woocommerce-checkout .woolentor-coupon-1 .coupon-form { margin: 0; padding: 0; display: flex !important; align-items: center; gap: 8px; flex-wrap: nowrap; }
body.woocommerce-checkout .woolentor-coupon-1 .coupon-form input.input-text { flex: 1 1 auto; min-width: 0; width: auto; }
body.woocommerce-checkout .woolentor-coupon-1.wl_style_2 .coupon-form button.button,
body.woocommerce-checkout .woolentor-coupon-1 .coupon-form button.button {
  flex: 0 0 auto; position: static; inset: auto; transform: none;
  background: transparent !important; border: 1px solid #111111 !important; color: #111111 !important; border-radius: 5px !important;
}
body.woocommerce-checkout .woolentor-coupon-1 .coupon-form button.button:hover { background: #F6F1EE !important; }
body.woocommerce-checkout .woolentor-coupon-1 .coupon-form .clear { display: none; }

/* Cart totals card: same structure as the checkout summary. */
body.woocommerce-checkout .cart_totals table.shop_table {
  display: block; width: 100%; margin: 0; padding: 0; border: 1px solid #E4E1DC !important; border-radius: 12px;
  background: #fff; border-collapse: collapse; overflow: hidden;
}
body.woocommerce-checkout .cart_totals table.shop_table tbody { display: block; width: 100%; }
body.woocommerce-checkout .cart_totals table.shop_table tbody tr {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 0 16px 8px; margin: 0; border: 0 !important; background: transparent;
}
body.woocommerce-checkout .cart_totals table.shop_table tbody tr:first-child { padding-top: 16px; }
body.woocommerce-checkout .cart_totals table.shop_table th,
body.woocommerce-checkout .cart_totals table.shop_table td {
  display: block; padding: 0 !important; margin: 0; border: 0 !important; background: transparent;
  font-size: 14px !important; line-height: 1.5 !important; font-weight: 400 !important; text-align: left; color: #4F5656 !important; text-transform: none !important; letter-spacing: 0 !important;
}
body.woocommerce-checkout .cart_totals table.shop_table td { text-align: right; font-variant-numeric: tabular-nums; color: #111111 !important; }
body.woocommerce-checkout .cart_totals table.shop_table td * { font-size: inherit !important; }
body.woocommerce-checkout .cart_totals table.shop_table td::before { content: none; }
body.woocommerce-checkout .cart_totals table.shop_table td strong { font-weight: 600 !important; }
body.woocommerce-checkout .cart_totals table.shop_table th { flex: 0 0 auto; white-space: nowrap; }
/* block 1 "due today" */
body.woocommerce-checkout .cart_totals table.shop_table tr.order-total:not(.recurring-total) { padding-bottom: 16px; }
body.woocommerce-checkout .cart_totals table.shop_table tr.order-total th,
body.woocommerce-checkout .cart_totals table.shop_table tr.order-total td { font-weight: 600 !important; color: #111111 !important; }
body.woocommerce-checkout .cart_totals table.shop_table tr.order-total:not(.recurring-total) th { font-size: 0 !important; }
body.woocommerce-checkout .cart_totals table.shop_table tr.order-total:not(.recurring-total) th::before {
  content: "Total due today"; font-size: 14px !important; font-weight: 600 !important; color: #111111;
}
html[lang^="de"] body.woocommerce-checkout .cart_totals table.shop_table tr.order-total:not(.recurring-total) th::before { content: "Heute fällig"; }
/* block 2 "then every month" / "after your trial" */
body.woocommerce-checkout .cart_totals table.shop_table tr.recurring-totals { display: block; border-top: 1px solid #E4E1DC !important; padding: 16px 16px 8px; }
body.woocommerce-checkout .cart_totals table.shop_table tr.recurring-totals th { font-size: 0 !important; line-height: 0; }
body.woocommerce-checkout .cart_totals table.shop_table tr.recurring-totals th::before {
  content: "Then every month"; font-size: 12px !important; line-height: 1.4; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #718080;
}
html[lang^="de"] body.woocommerce-checkout .cart_totals table.shop_table tr.recurring-totals th::before { content: "Danach monatlich"; }
body.woocommerce-checkout.aa-has-trial .cart_totals table.shop_table tr.recurring-totals th::before { content: "After your trial"; }
html[lang^="de"] body.woocommerce-checkout.aa-has-trial .cart_totals table.shop_table tr.recurring-totals th::before { content: "Nach der Testphase"; }
body.woocommerce-checkout .cart_totals table.shop_table tr.recurring-total th[rowspan] { width: auto; }
body.woocommerce-checkout .cart_totals table.shop_table tr.order-total.recurring-total { padding-bottom: 16px; }
body.woocommerce-checkout .cart_totals table.shop_table tr.recurring-total td { font-weight: 400 !important; }
body.woocommerce-checkout .cart_totals table.shop_table tr.order-total.recurring-total td {
  display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; column-gap: 2px; font-weight: 600 !important;
}
body.woocommerce-checkout .cart_totals table.shop_table tr.recurring-total .first-payment-date {
  flex: 0 0 100%; margin: 8px 0 0; text-align: right; font-size: 13px; font-weight: 400; line-height: 1.45; color: #718080;
}
body.woocommerce-checkout .cart_totals table.shop_table tr.recurring-total .first-payment-date small { font-size: 13px; color: inherit; }

/* Proceed to checkout: our primary button, content width, left-aligned, 16px under the totals card. */
body.woocommerce-checkout .cart_totals .wc-proceed-to-checkout { padding: 0; margin: 16px 0 0; text-align: left; }
body.woocommerce-checkout .cart_totals .wc-proceed-to-checkout a.checkout-button {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: auto !important; height: 36px !important; min-height: 0 !important; margin: 0 !important; padding: 0 16px !important; float: none;
  background: #69C7C1 !important; color: #111111 !important; border: 0 !important; border-radius: 5px !important; box-shadow: none;
  font: 600 13px/1 'DM Sans', system-ui, sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; text-decoration: none; white-space: nowrap;
}
body.woocommerce-checkout .cart_totals .wc-proceed-to-checkout a.checkout-button:hover { background: #5BB8B2 !important; color: #111111 !important; }

/* Apply label: sentence case, not the theme's uppercase. */
body.woocommerce-checkout .woolentor-coupon-1 .coupon-form button.button,
body.woocommerce-checkout .woolentor-coupon-1 .coupon-form button.button::before { text-transform: none !important; letter-spacing: 0 !important; }

/* Cart: neutral widget wrappers (the right column's widgets carry 30px container padding the left one doesn't), tops aligned. */
body.woocommerce-checkout .elementor-widget-wl-checkout-coupon-form:has(+ .elementor-widget .cart_totals) > .elementor-widget-container,
body.woocommerce-checkout .elementor-widget-wl-cart-total > .elementor-widget-container { padding: 0 !important; }
body.woocommerce-checkout .elementor-column:has(.woolentor-cart-list) > .elementor-widget-wrap { margin-top: 0 !important; }
body.woocommerce-checkout .woolentor-cart-list .woolentor-cart-product,
body.woocommerce-checkout .woolentor-cart-list .woolentor-cart-product-content,
body.woocommerce-checkout .woolentor-cart-list .woolentor-cart-product-content-left { text-align: left !important; }
body.woocommerce-checkout .woolentor-coupon-1 .coupon-form button.button { width: auto !important; min-width: 0; }
body.woocommerce-checkout .woolentor-coupon-1 .coupon-form input.input-text { width: auto !important; }
body.woocommerce-checkout .woolentor-cart-list .woolentor-cart-product-content { flex-direction: row !important; align-items: center !important; justify-content: space-between !important; }
body.woocommerce-checkout .woolentor-cart-list .woolentor-cart-product-content-right { flex: 0 0 auto; width: auto !important; padding: 0; margin: 0; }
body.woocommerce-checkout .woolentor-cart-list .woolentor-cart-product-actions { padding: 0 !important; margin: 0; justify-content: flex-end; }
body.woocommerce-checkout .woolentor-cart-list .woolentor-product-price { text-align: left !important; justify-content: flex-start; }
body.woocommerce-checkout .woolentor-cart-list .woolentor-cart-product { flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important; }
body.woocommerce-checkout .woolentor-cart-list .woolentor-cart-product-content { width: auto !important; }

/* Cart item meta (Storage / Billing period) printed ONCE. WooLentor's cart widget renders the same
   `.woolentor-cart-product-meta.wl-variations` block twice: inside the title (.product-title) and again in
   `.woolentor-cart-product-meta-wrapper`. The wrapper copy is kept (quiet 13px line under the name), the in-title copy is hidden. */
body.woocommerce-checkout .woolentor-cart-list .product-title .woolentor-cart-product-meta { display: none !important; }
body.woocommerce-checkout .woolentor-cart-list .woolentor-cart-product-meta-wrapper .woolentor-cart-product-meta {
  display: flex; flex-wrap: wrap; gap: 0 12px; margin: 4px 0 0; padding: 0;
  font: 400 13px/1.4 'DM Sans', system-ui, sans-serif; color: #4F5656;
}
body.woocommerce-checkout .woolentor-cart-list .woolentor-cart-product-meta-wrapper .woolentor-cart-product-meta > div { display: inline-flex; gap: 4px; margin: 0; padding: 0; }
body.woocommerce-checkout .woolentor-cart-list .woolentor-cart-product-meta-wrapper .wl-variation-key { font-weight: 400; color: #4F5656; }
body.woocommerce-checkout .woolentor-cart-list .woolentor-cart-product-meta-wrapper .wl-variation-value { font-weight: 600; color: #111111; }

/* ══════════════════════════════════════════════════════════════════════════════════════════════════════════
   Checkout step 2 (PAYMENT), left column: gateway tiles, one purchase button, quiet return link, our checkbox.
   Same language as the account skin's add-payment-method (tiles, no grey box). Gateway markup / fields are never
   hidden: only WooLentor's duplicate "Buy Now" while PayPal's own smart button is the way to pay.
   ══════════════════════════════════════════════════════════════════════════════════════════════════════════ */

/* 1. Gateway tiles */
body.woocommerce-checkout .woolentor-payment-method-1 ul.payment_methods {
  list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 12px; border: 0; background: transparent;
}
body.woocommerce-checkout .woolentor-payment-method-1 ul.payment_methods > li {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; min-height: 56px; padding: 16px;
  background: #fff !important; border: 1px solid #E4E1DC !important; border-radius: 12px !important; box-shadow: none;
  font: 600 14px/1.4 'DM Sans', system-ui, sans-serif; color: #111111;
}
body.woocommerce-checkout .woolentor-payment-method-1 ul.payment_methods > li:has(> input[type="radio"]:checked) {
  border-color: #718080 !important; box-shadow: none !important;
}
body.woocommerce-checkout .woolentor-payment-method-1 ul.payment_methods > li > input[type="radio"] {
  flex: 0 0 18px; width: 18px !important; height: 18px !important; margin: 0; accent-color: #000;
}
body.woocommerce-checkout .woolentor-payment-method-1 ul.payment_methods > li > label {
  flex: 1 1 0; min-width: 0; margin: 0; padding: 0; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
  font: 600 14px/1.4 'DM Sans', system-ui, sans-serif; color: #111111; cursor: pointer;
}
body.woocommerce-checkout .woolentor-payment-method-1 ul.payment_methods > li > label img {
  height: auto; max-height: 20px; width: auto; max-width: 100%; margin: 0; flex: 0 1 auto; vertical-align: middle;
}
/* gateway box: no grey fill, no notch; the description is a quiet line, the gateway's fields stay as rendered */
body.woocommerce-checkout .woolentor-payment-method-1 ul.payment_methods > li .payment_box {
  flex: 1 0 100%; margin: 0; padding: 0; background: transparent !important; border: 0 !important; border-radius: 0; box-shadow: none;
  font: 400 14px/1.5 'DM Sans', system-ui, sans-serif; color: #4F5656;
}
body.woocommerce-checkout .woolentor-payment-method-1 ul.payment_methods > li .payment_box::before,
body.woocommerce-checkout .woolentor-payment-method-1 ul.payment_methods > li .payment_box::after { display: none !important; }
body.woocommerce-checkout .woolentor-payment-method-1 ul.payment_methods > li .payment_box > p {
  margin: 0; font: 400 14px/1.5 'DM Sans', system-ui, sans-serif; color: #4F5656;
}
/* PayPal: the concept line instead of the bare gateway description ("Pay via PayPal."); DOM text stays */
body.woocommerce-checkout .woolentor-payment-method-1 ul.payment_methods > li.payment_method_ppcp-gateway .payment_box > p { font-size: 0 !important; line-height: 0; }
body.woocommerce-checkout .woolentor-payment-method-1 ul.payment_methods > li.payment_method_ppcp-gateway .payment_box > p::before {
  content: "You\2019ll log in to PayPal to confirm, then come straight back here."; font-size: 14px; line-height: 1.5; color: #4F5656;
}
html[lang^="de"] body.woocommerce-checkout .woolentor-payment-method-1 ul.payment_methods > li.payment_method_ppcp-gateway .payment_box > p::before {
  content: "Du meldest dich bei PayPal an, best\00E4 tigst und kommst direkt hierher zur\00FC ck.";
}

/* 2. ONE purchase button at a time. PayPal's plugin marks its own #place_order `ppcp-hidden` while PayPal is chosen;
   WooLentor's step footer carries a second #place_order ("Buy Now") that does not follow it: mirror PPCP's decision. */
body.woocommerce-checkout form.checkout:has(.place-order #place_order.ppcp-hidden) .woolentor-step-footer #place_order { display: none !important; }
/* Our primary button (36px, 0/16, 13px/600, radius 5, content width, left) for every visible #place_order */
body.woocommerce-checkout form.checkout #place_order:not(.ppcp-hidden) {
  box-sizing: border-box; width: auto !important; height: 36px !important; min-height: 0 !important;
  margin: 0; padding: 0 16px !important; float: none !important; text-align: center; vertical-align: top;
  background: #69C7C1 !important; color: #111111 !important; border: 0 !important; border-radius: 5px !important; box-shadow: none;
  font: 600 13px/36px 'DM Sans', system-ui, sans-serif !important; letter-spacing: 0 !important; text-transform: lowercase !important; white-space: nowrap; cursor: pointer;
}
body.woocommerce-checkout form.checkout #place_order:not(.ppcp-hidden)::first-letter { text-transform: uppercase; }
html[lang^="de"] body.woocommerce-checkout form.checkout #place_order:not(.ppcp-hidden) { text-transform: none !important; }
body.woocommerce-checkout form.checkout #place_order:not(.ppcp-hidden):hover { background: #5BB8B2 !important; color: #111111 !important; }
body.woocommerce-checkout form.checkout #place_order:not(.ppcp-hidden):disabled { opacity: .45; cursor: not-allowed; }

/* step footer: terms, then the button, then the quiet return link, all left-aligned on one 16px rhythm */
body.woocommerce-checkout .woolentor-payment-method-1 .woolentor-step-footer,
body.woocommerce-checkout .woolentor-msc2-step-3 .woolentor-step-footer {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin: 0; padding: 0;
}
body.woocommerce-checkout .woolentor-msc2-step-3 .woolentor-step-footer > .aa-web-consent { order: 1; }
body.woocommerce-checkout .woolentor-msc2-step-3 .woolentor-step-footer > #place_order { order: 2; }
body.woocommerce-checkout .woolentor-msc2-step-3 .woolentor-step-footer > .woolentor-btn-text { order: 3; }

/* 3. Return link: quiet text link (14px / 500 / #4F5656), sentence case where it reads right */
body.woocommerce-checkout .woolentor-msc2-step-3 .woolentor-btn-text {
  background: none !important; border: 0 !important; padding: 0 !important; margin: 0; width: auto; min-height: 0; box-shadow: none;
  font: 500 14px/1.5 'DM Sans', system-ui, sans-serif !important; letter-spacing: 0 !important; color: #4F5656 !important; cursor: pointer;
  text-transform: none !important; display: inline-flex; align-items: center; gap: 6px;
}
body.woocommerce-checkout .woolentor-msc2-step-3 .woolentor-btn-text:hover { color: #247973 !important; }
/* (text case left as WooLentor prints it: ::first-letter does not reach the text next to the arrow icon) */

/* 4. Terms checkbox: our style; error only when WooCommerce flags it */
body.woocommerce-checkout .woolentor-msc2-step-3 p.aa-web-consent { margin: 0; padding: 0; width: 100%; }
body.woocommerce-checkout .woolentor-msc2-step-3 p.aa-web-consent label {
  display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 0;
  font: 400 14px/1.5 'DM Sans', system-ui, sans-serif; color: #4F5656;
}
body.woocommerce-checkout .woolentor-msc2-step-3 p.aa-web-consent input[type="checkbox"] {
  flex: 0 0 18px; width: 18px !important; height: 18px !important; margin: 2px 0 0; accent-color: #000;
}
body.woocommerce-checkout .woolentor-msc2-step-3 p.aa-web-consent a { color: #247973; text-decoration: none; }
body.woocommerce-checkout .woolentor-msc2-step-3 p.aa-web-consent a:hover { text-decoration: underline; }
body.woocommerce-checkout .woolentor-msc2-step-3 p.aa-web-consent .required { color: #4F5656; text-decoration: none; border: 0; }
body.woocommerce-checkout .woolentor-msc2-step-3 p.aa-web-consent.woocommerce-invalid label { color: #B42318; }
body.woocommerce-checkout .woolentor-msc2-step-3 p.aa-web-consent.woocommerce-invalid label a,
body.woocommerce-checkout .woolentor-msc2-step-3 p.aa-web-consent.woocommerce-invalid .required { color: #B42318; }
body.woocommerce-checkout .woolentor-msc2-step-3 p.aa-web-consent.woocommerce-invalid input[type="checkbox"] { outline: 1px solid #B42318; outline-offset: 1px; border-radius: 3px; }
/* the theme draws its own radio (absolute, over the label): use the plain accent-black radio in the tile's flow */
body.woocommerce-checkout .woolentor-payment-method-1 ul.payment_methods > li > input[type="radio"] {
  position: static !important; inset: auto !important; opacity: 1 !important; visibility: visible !important; transform: none !important;
  -webkit-appearance: radio; appearance: auto; clip: auto; display: inline-block;
}
body.woocommerce-checkout .woolentor-payment-method-1 ul.payment_methods > li > label::before,
body.woocommerce-checkout .woolentor-payment-method-1 ul.payment_methods > li > label::after { display: none !important; content: none !important; }
body.woocommerce-checkout .woolentor-payment-method-1 ul.payment_methods > li > label { padding-left: 0 !important; }
body.woocommerce-checkout .woolentor-msc2-step-3 .woolentor-btn-text { display: inline-block !important; }
/* display only for WooLentor's footer copy (the original #place_order keeps whatever visibility the theme / PPCP gave it) */
body.woocommerce-checkout .woolentor-msc2-step-3 .woolentor-step-footer > #place_order:not(.ppcp-hidden) { display: inline-block !important; }
/* WooLentor hides the native checkbox (visibility:hidden, opacity:0) and paints a custom box on span::before: show the native
   accent-black checkbox (same input, same name/value, toggles as before) and drop the painted box. */
body.woocommerce-checkout .woolentor-msc2-step-3 p.aa-web-consent input[type="checkbox"] {
  position: static !important; inset: auto !important; opacity: 1 !important; visibility: visible !important; transform: none !important;
  -webkit-appearance: checkbox; appearance: auto; display: inline-block; clip: auto; pointer-events: auto;
}
body.woocommerce-checkout .woolentor-msc2-step-3 p.aa-web-consent label > span { padding-left: 0 !important; margin: 0; position: static; }
body.woocommerce-checkout .woolentor-msc2-step-3 p.aa-web-consent label > span::before,
body.woocommerce-checkout .woolentor-msc2-step-3 p.aa-web-consent label > span::after,
body.woocommerce-checkout .woolentor-msc2-step-3 p.aa-web-consent label::before,
body.woocommerce-checkout .woolentor-msc2-step-3 p.aa-web-consent label::after { display: none !important; content: none !important; }
body.woocommerce-checkout .woolentor-payment-method-1 ul.payment_methods > li > label { background: transparent !important; }
body.woocommerce-checkout .woolentor-payment-method-1 ul.payment_methods > li .woocommerce-SavedPaymentMethods { margin: 0; padding: 0; }
body.woocommerce-checkout .woolentor-payment-method-1 ul.payment_methods > li .wc-payment-form,
body.woocommerce-checkout .woolentor-payment-method-1 ul.payment_methods > li .wc-stripe-gateway-container { margin: 0; padding: 0; }
body.woocommerce-checkout .woolentor-payment-method-1 ul.payment_methods > li { margin: 0 !important; }
body.woocommerce-checkout .woolentor-payment-method-1 ul.payment_methods > li > label { min-height: 0 !important; line-height: 1.4 !important; }
body.woocommerce-checkout .woolentor-payment-method-1 ul.payment_methods > li .payment_box { padding: 0 !important; margin: 0 !important; }
body.woocommerce-checkout .woolentor-payment-method-1 ul.payment_methods > li { padding: 16px !important; }
body.woocommerce-checkout .woolentor-msc2-step-3 .woolentor-step-footer { margin-top: 16px !important; }

/* ── Payment step, left column: one vertical rhythm ───────────────────────────────────────────────────────────
   title -16- tiles | tile -12- tile | tile padding 16 | PayPal line 8 / card fields 12 under the radio row |
   last tile -20- next block | terms -16- button | purchase block -20- return link. WooLentor / WC margins zeroed. */
body.woocommerce-checkout .woolentor-payment-method-1 h3.woolentor-title { margin: 0 0 16px !important; padding: 0 !important; }
body.woocommerce-checkout .woolentor-payment-method-1 #payment.woocommerce-checkout-payment,
body.woocommerce-checkout .woolentor-payment-method-1 #payment .payment_methods { margin: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important; }
body.woocommerce-checkout .woolentor-payment-method-1 ul.payment_methods { margin: 0 !important; }
body.woocommerce-checkout .woolentor-payment-method-1 ul.payment_methods > li.payment_method_ppcp-gateway .payment_box { margin-top: -4px !important; }
body.woocommerce-checkout .woolentor-payment-method-1 ul.payment_methods > li .payment_box > * { margin-top: 0; margin-bottom: 0; }
body.woocommerce-checkout .woolentor-payment-method-1 .woocommerce-checkout-payment .form-row.place-order { margin: 0; padding: 0; }
body.woocommerce-checkout .woolentor-payment-method-1 .ppc-button-wrapper { margin: 0 !important; padding: 0; }
body.woocommerce-checkout form.checkout:has(.place-order #place_order.ppcp-hidden) .woolentor-payment-method-1 .ppc-button-wrapper { margin-top: 20px !important; }
body.woocommerce-checkout .woolentor-msc2-step-3 .woolentor-step-footer { margin-top: 20px !important; gap: 16px; }
body.woocommerce-checkout form.checkout:has(.place-order #place_order.ppcp-hidden) .woolentor-msc2-step-3 .woolentor-step-footer { margin-top: 16px !important; }
body.woocommerce-checkout .woolentor-msc2-step-3 .woolentor-step-footer > .woolentor-btn-text { margin-top: 4px !important; }
/* WooCommerce's clearfix pseudo-elements become flex items of the tile list (+12px gap top and bottom): drop them */
body.woocommerce-checkout .woolentor-payment-method-1 ul.payment_methods::before,
body.woocommerce-checkout .woolentor-payment-method-1 ul.payment_methods::after { display: none !important; content: none !important; }
/* Plans without our own consent row (WooCommerce's native privacy text + terms checkbox sit in .place-order, under the tiles) */
body.woocommerce-checkout .woolentor-payment-method-1 .form-row.place-order:has(.woocommerce-terms-and-conditions-wrapper) { margin: 20px 0 0 !important; padding: 0 !important; }
body.woocommerce-checkout .woolentor-payment-method-1 .woocommerce-privacy-policy-text { margin: 0 0 12px !important; padding: 0 !important; }
body.woocommerce-checkout .woolentor-payment-method-1 .woocommerce-privacy-policy-text p { margin: 0 !important; font: 400 14px/1.5 'DM Sans', system-ui, sans-serif; color: #4F5656; }
body.woocommerce-checkout .woolentor-payment-method-1 .woocommerce-terms-and-conditions-wrapper p.form-row { margin: 0 !important; padding: 0 !important; }
body.woocommerce-checkout form.checkout:has(.woocommerce-terms-and-conditions-wrapper) .woolentor-msc2-step-3 .woolentor-step-footer { margin-top: 16px !important; }
body.woocommerce-checkout form.checkout:has(.woocommerce-terms-and-conditions-wrapper):has(.place-order #place_order.ppcp-hidden) .woolentor-payment-method-1 .ppc-button-wrapper { margin-top: 16px !important; }
body.woocommerce-checkout .woolentor-payment-method-1 ul.payment_methods > li::before,
body.woocommerce-checkout .woolentor-payment-method-1 ul.payment_methods > li::after { display: none !important; content: none !important; }
/* Stripe's element pulls itself 4px out with negative margins (iframe margin -4px): give the container the matching 4px so the
   card fields sit 12px under the radio row and 16px from the tile's bottom edge. */
body.woocommerce-checkout .woolentor-payment-method-1 ul.payment_methods > li .wc-payment-form,
body.woocommerce-checkout .woolentor-payment-method-1 ul.payment_methods > li .wc-stripe-gateway-container { padding: 4px 0 !important; }
/* PayPal's wrapper keeps an EMPTY Google Pay container (min-height 40px + 17px margin = 55px/72px of nothing) when the wallet is
   unavailable. Collapse it only while it holds nothing but hidden inputs: the container stays in the DOM and in the flow, so if
   PayPal renders a button into it the rule stops matching and PayPal's own sizing applies again. */
body.woocommerce-checkout .woolentor-payment-method-1 .ppc-button-wrapper .ppcp-button-apm:not(:has(> :not(input[type="hidden"]):not(style):not(script))) {
  min-height: 0 !important; height: 0 !important; margin: 0 !important; padding: 0 !important;
}


/* CTA focus: 2px #111 ring, offset 2px (keyboard only) */
body.woocommerce-checkout .cart_totals .wc-proceed-to-checkout a.checkout-button:focus-visible,
body.woocommerce-checkout form.checkout #place_order:not(.ppcp-hidden):focus-visible { outline: 2px solid #111111 !important; outline-offset: 2px; }

/* Embedded in the app on phones / tablets: the app's fixed bottom navigation (lg:hidden, ~56px at 390, ~75px from 768, + safe area)
   sits over the bottom of the frame. Reserve room so the last control (Proceed to checkout, Return link, Buy now) clears it. */
@media (max-width: 1023px) {
  body.aa-embed.woocommerce-checkout { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 88px) !important; }
}

/* ══════════════════════════════════════════════════════════════════════════════════════════════════════════
   Accent CTAs in the site's own voice: TrashHand (the website's loaded @font-face), capitals, #69C7C1 + #111, lime hover.
   Applies to "Proceed to checkout" (cart) and "Buy now" (payment step). The website's "Continue To Payment" keeps its own look
   but no longer moves on hover and stays readable on the lime hover.
   ══════════════════════════════════════════════════════════════════════════════════════════════════════════ */
body.woocommerce-checkout .cart_totals .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-checkout form.checkout #place_order:not(.ppcp-hidden) {
  font-family: TrashHand, 'DM Sans', sans-serif !important; font-size: 18px !important; font-weight: 400 !important;
  letter-spacing: .02em !important; text-transform: uppercase !important;
  height: 40px !important; padding: 0 20px !important; border: 0 !important; border-radius: 5px !important;
  background: #69C7C1 !important; color: #111111 !important; transition: background-color .15s ease, color .15s ease !important;
}
body.woocommerce-checkout .cart_totals .wc-proceed-to-checkout a.checkout-button { line-height: 1 !important; }
body.woocommerce-checkout form.checkout #place_order:not(.ppcp-hidden) { line-height: 40px !important; }
body.woocommerce-checkout form.checkout #place_order:not(.ppcp-hidden)::first-letter { text-transform: uppercase; }
body.woocommerce-checkout .cart_totals .wc-proceed-to-checkout a.checkout-button:hover,
body.woocommerce-checkout form.checkout #place_order:not(.ppcp-hidden):hover { background: #D0FF00 !important; color: #111111 !important; }

/* Step 1 "Continue To Payment": WooLentor flips border 0 none -> 0 solid and transitions `all` (a 2px size pulse on hover).
   Fixed geometry in both states, only colour changes, readable text on the lime. */
body.woocommerce-checkout .woolentor-msc2-step .woolentor-step-footer > button[data-step-target="#payment_method_step"],
body.woocommerce-checkout .woolentor-msc2-step .woolentor-step-footer > button[data-step-target="#payment_method_step"]:hover,
body.woocommerce-checkout .woolentor-msc2-step .woolentor-step-footer > button[data-step-target="#payment_method_step"]:focus {
  border: 0 !important; border-width: 0 !important; outline: 0; box-shadow: none !important; transform: none !important;
  transition: background-color .15s ease, color .15s ease !important;
}
body.woocommerce-checkout .woolentor-msc2-step .woolentor-step-footer > button[data-step-target="#payment_method_step"]:hover,
body.woocommerce-checkout .woolentor-msc2-step .woolentor-step-footer > button[data-step-target="#payment_method_step"]:focus { background: #D0FF00 !important; color: #111111 !important; }
body.woocommerce-checkout .woolentor-msc2-step .woolentor-step-footer > button[data-step-target="#payment_method_step"]:focus-visible { outline: 2px solid #111111 !important; outline-offset: 2px; }

/* Return link: the arrow icon sits on the text's x-height centre by CSS definition (vertical-align: middle = baseline + half the
   x-height), so no hand offsets: inline icon, fixed 14px, 6px gap. */
body.woocommerce-checkout .woolentor-msc2-step-3 .woolentor-btn-text { display: inline-block !important; line-height: 1.5 !important; }
body.woocommerce-checkout .woolentor-msc2-step-3 .woolentor-btn-text svg,
body.woocommerce-checkout .woolentor-msc2-step-3 .woolentor-btn-text i {
  display: inline-block; width: 14px !important; height: 14px !important; margin: 0 6px 0 0 !important; padding: 0;
  vertical-align: middle; position: static; top: auto; transform: none; font-size: 14px; line-height: 1;
}
