/*
 * Automodz complete component coverage
 * Loaded after WooCommerce and block styles so branded presentation is
 * consistent on pages created by either classic shortcodes or modern blocks.
 */

/* Core WordPress blocks and ordinary content pages */
.page-content > *:first-child,
.single-content > *:first-child { margin-top: 0; }
.page-content > *:last-child,
.single-content > *:last-child { margin-bottom: 0; }
.page-content h2,
.page-content h3,
.page-content h4,
.single-content h2,
.single-content h3,
.single-content h4 { color: var(--ink); line-height: 1.08; letter-spacing: -.035em; }
.page-content h2,
.single-content h2 { margin: 2em 0 .65em; font-size: clamp(30px,3vw,46px); }
.page-content h3,
.single-content h3 { margin: 1.7em 0 .55em; font-size: clamp(24px,2.2vw,32px); }
.page-content p,
.single-content p { margin: 0 0 1.25em; }
.page-content ul,
.page-content ol,
.single-content ul,
.single-content ol { padding-left: 1.4em; }
.page-content li + li,
.single-content li + li { margin-top: .45em; }
.alignwide { width: min(1180px,calc(100vw - 48px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.wp-block-group,
.wp-block-columns { margin-block: 30px; }
.wp-block-columns { gap: 28px; }
.wp-block-cover { overflow: hidden; border-radius: 16px; }
.wp-block-image img,
.wp-block-media-text__media img { border-radius: 12px; }
.wp-block-button__link,
.wp-element-button {
  min-height: 50px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 20px; border: 0; border-radius: 7px; background: var(--blue); color: #fff !important;
  font-size: 14px; font-weight: 850; text-decoration: none !important; transition: transform .18s ease,background .18s ease;
}
.wp-block-button__link:hover,
.wp-element-button:hover { transform: translateY(-1px); background: var(--blue-deep); }
.is-style-outline > .wp-block-button__link { border: 1px solid var(--ink); background: transparent; color: var(--ink) !important; }
.wp-block-quote { margin: 30px 0; padding: 24px 28px; border: 0; border-left: 4px solid var(--blue); border-radius: 0 12px 12px 0; background: var(--paper); }
.wp-block-quote p { margin: 0; font-size: 1.2em; }
.wp-block-separator { border: 0; border-top: 1px solid var(--line); }
.wp-block-table { overflow-x: auto; }
.wp-block-table table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); }
.wp-block-table th,
.wp-block-table td { padding: 12px 14px; border: 1px solid var(--line); }
.wp-block-table th { background: var(--paper); text-align: left; }
.wp-block-details { margin: 12px 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.wp-block-details summary { cursor: pointer; font-weight: 800; }

/* Forms, Contact Form 7, newsletter and plugin-neutral fields */
.page-content label,
.single-content label,
.wpcf7-form label { display: block; color: #334158; font-size: 13px; font-weight: 800; }
.page-content input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.page-content select,
.page-content textarea,
.single-content input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.single-content select,
.single-content textarea,
.wpcf7-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%; min-height: 50px; margin-top: 6px; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 9px; outline: 0; background: #fff; color: var(--ink); transition: border-color .18s ease,box-shadow .18s ease;
}
.page-content textarea,
.single-content textarea,
.wpcf7-form textarea { min-height: 150px; resize: vertical; }
.page-content input:focus,
.page-content select:focus,
.page-content textarea:focus,
.single-content input:focus,
.single-content select:focus,
.single-content textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40,100,255,.12); }
.page-content input[type="submit"],
.single-content input[type="submit"],
.wpcf7-form input[type="submit"] { min-height: 50px; padding: 0 22px; border: 0; border-radius: 7px; background: var(--blue); color: #fff; font-weight: 850; cursor: pointer; }
.wpcf7-form { max-width: 820px; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.wpcf7-form p { margin: 0 0 18px; }
.wpcf7-response-output { margin: 20px 0 0 !important; padding: 13px 15px !important; border: 0 !important; border-left: 4px solid var(--blue) !important; border-radius: 7px; background: #edf3ff; }

/* Product blocks and grid collections */
.wc-block-grid__products,
.wp-block-woocommerce-product-collection .wc-block-product-template,
.wp-block-woocommerce-product-template {
  display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; padding: 0; list-style: none;
}
.wc-block-grid__product,
.wc-block-product {
  min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff;
  transition: transform .22s ease,box-shadow .22s ease;
}
.wc-block-grid__product:hover,
.wc-block-product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.wc-block-grid__product-image,
.wc-block-components-product-image { margin: 0 !important; background: var(--paper); }
.wc-block-grid__product-image img,
.wc-block-components-product-image img { width: 100%; aspect-ratio: 1; padding: 20px; object-fit: contain; }
.wc-block-grid__product-title,
.wc-block-components-product-name { padding: 0 16px; color: var(--ink) !important; font-size: 15px !important; line-height: 1.35; font-weight: 760; text-decoration: none !important; }
.wc-block-grid__product-price,
.wc-block-components-product-price { padding: 0 16px; color: var(--ink); font-weight: 900; }
.wc-block-grid__product-add-to-cart,
.wp-block-button.wc-block-components-product-button { padding: 0 16px 18px; }
.wc-block-grid__product-add-to-cart .wp-block-button__link,
.wc-block-components-product-button__button { width: 100%; min-height: 44px; border-radius: 7px; background: var(--ink); color: #fff; }
.wc-block-components-product-sale-badge,
.wc-block-grid__product-onsale { border: 0 !important; border-radius: 4px !important; background: var(--blue) !important; color: #fff !important; font-size: 9px !important; font-weight: 900 !important; letter-spacing: .1em; }

/* Shared modern WooCommerce components */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout,
.wc-block-components-main,
.wc-block-components-sidebar { color: var(--ink); }
.wc-block-components-sidebar-layout { gap: 32px; align-items: flex-start; }
.wc-block-components-sidebar-layout .wc-block-components-main { width: calc(65% - 16px); padding-right: 0; }
.wc-block-components-sidebar-layout .wc-block-components-sidebar { width: calc(35% - 16px); margin-left: 0; }
.wc-block-components-title { color: var(--ink); font-weight: 850; letter-spacing: -.035em; }
.wc-block-components-button {
  min-height: 52px !important; border: 0 !important; border-radius: 7px !important; background: var(--blue) !important;
  color: #fff !important; font-size: 14px !important; font-weight: 850 !important; box-shadow: none !important;
}
.wc-block-components-button:hover { background: var(--blue-deep) !important; }
.wc-block-components-button:disabled { opacity: .55; }
.wc-block-components-notice-banner,
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
  margin: 0 0 22px !important; padding: 15px 18px !important; border: 0 !important; border-left: 4px solid var(--blue) !important;
  border-radius: 8px !important; background: #edf3ff !important; color: var(--ink) !important;
}
.wc-block-components-notice-banner.is-error,
.woocommerce-error { border-left-color: #c73535 !important; background: #fff0f0 !important; }
.wc-block-components-notice-banner.is-success,
.woocommerce-message { border-left-color: #2d8a52 !important; background: #effaf3 !important; }
.wc-block-components-spinner::after { border-top-color: var(--blue); }

/* Cart block */
.wp-block-woocommerce-cart { padding-top: 4px; }
.wc-block-cart-items { border: 1px solid var(--line) !important; border-collapse: separate !important; border-spacing: 0; border-radius: 13px; overflow: hidden; background: #fff; }
.wc-block-cart-items thead th { padding: 14px 16px !important; border: 0 !important; background: var(--paper); color: var(--muted); font-size: 10px !important; font-weight: 900 !important; letter-spacing: .1em !important; }
.wc-block-cart-items tbody tr + tr td { border-top: 1px solid var(--line) !important; }
.wc-block-cart-items td { padding: 18px 14px !important; vertical-align: middle !important; }
.wc-block-cart-item__image { width: 112px !important; }
.wc-block-cart-item__image img { width: 94px !important; height: 94px !important; padding: 8px; border-radius: 9px; background: var(--paper); object-fit: contain; }
.wc-block-components-product-name { padding: 0; font-size: 15px !important; }
.wc-block-components-product-metadata { color: var(--muted); font-size: 12px; }
.wc-block-components-quantity-selector { height: 42px; border: 1px solid var(--line) !important; border-radius: 8px !important; background: #fff; }
.wc-block-components-quantity-selector input { min-width: 42px; color: var(--ink) !important; font-weight: 800; }
.wc-block-components-quantity-selector button { min-width: 36px; color: var(--ink) !important; }
.wc-block-cart-item__remove-link { color: #a33b3b !important; font-size: 11px !important; font-weight: 800 !important; text-decoration: underline !important; text-underline-offset: 2px; }
.wc-block-cart__sidebar { padding: 24px !important; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.wc-block-cart__totals-title { padding: 0 0 15px !important; color: var(--ink) !important; font-size: 22px !important; font-weight: 850 !important; letter-spacing: -.03em !important; text-align: left !important; }
.wc-block-components-totals-wrapper { padding: 16px 0 !important; border-top: 1px solid var(--line) !important; }
.wc-block-components-totals-item__label { font-weight: 700; }
.wc-block-components-totals-item__value { font-weight: 850; }
.wc-block-components-totals-footer-item { font-size: 18px; }
.wc-block-components-totals-coupon__button { min-height: 44px !important; }
.wc-block-cart__submit-container { margin-top: 18px; }
.wc-block-cart__submit-button { background: var(--blue) !important; }
.wc-block-cart__empty-cart__title { margin: 20px 0; padding: 56px 24px; border-radius: 13px; background: var(--paper); color: var(--ink); font-size: clamp(28px,4vw,48px); }
.wp-block-woocommerce-empty-cart-block .wp-block-heading { font-weight: 850; }

/* Checkout block */
.wp-block-woocommerce-checkout { padding-top: 4px; }
.wc-block-checkout__main { padding-right: 0 !important; }
.wc-block-checkout__sidebar { position: sticky; top: 132px; padding: 24px !important; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.wc-block-components-checkout-step { margin: 0 0 18px !important; padding: 24px !important; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.wc-block-components-checkout-step__heading { margin: 0 0 18px !important; }
.wc-block-components-checkout-step__title { font-size: 22px !important; font-weight: 850 !important; letter-spacing: -.035em; }
.wc-block-components-checkout-step__description { color: var(--muted) !important; font-size: 13px !important; line-height: 1.55; }
.wc-block-components-address-form { gap: 14px !important; }
.wc-block-components-text-input,
.wc-block-components-combobox { margin: 0 !important; }
.wc-block-components-text-input input,
.wc-block-components-combobox .components-combobox-control__input,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-address-form__address_2-toggle {
  min-height: 52px !important; border: 1px solid var(--line) !important; border-radius: 9px !important;
  background: #fff !important; color: var(--ink) !important; box-shadow: none !important;
}
.wc-block-components-text-input input:focus,
.wc-block-components-combobox .components-combobox-control__input:focus,
.wc-blocks-components-select .wc-blocks-components-select__select:focus { border-color: var(--blue) !important; box-shadow: 0 0 0 3px rgba(40,100,255,.12) !important; }
.wc-block-components-text-input label,
.wc-blocks-components-select .wc-blocks-components-select__label { color: var(--muted) !important; font-size: 12px !important; }
.wc-block-checkout__payment-method .wc-block-components-radio-control { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.wc-block-components-radio-control-accordion-option { border: 0 !important; border-bottom: 1px solid var(--line) !important; background: #fff; }
.wc-block-components-radio-control-accordion-option:last-child { border-bottom: 0 !important; }
.wc-block-components-radio-control-accordion-option--checked-option-highlighted { box-shadow: inset 4px 0 0 var(--blue) !important; background: #f7f9ff !important; }
.wc-block-components-radio-control__input:checked { border-color: var(--blue) !important; }
.wc-block-components-radio-control__input:checked::before { background: var(--blue) !important; }
.wc-block-checkout__terms { color: var(--muted); font-size: 12px; line-height: 1.55; }
.wc-block-checkout__actions_row { align-items: center; gap: 16px; }
.wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button { min-height: 58px !important; }
.wc-block-components-checkout-return-to-cart-button { color: var(--blue) !important; font-size: 13px !important; font-weight: 800 !important; }
.wc-block-components-order-summary { padding: 0 !important; }
.wc-block-components-order-summary__button-text { color: var(--ink); font-size: 18px; font-weight: 850; }
.wc-block-components-order-summary-item { padding: 16px 0 !important; border-top: 1px solid var(--line) !important; }
.wc-block-components-order-summary-item__image { width: 70px !important; }
.wc-block-components-order-summary-item__image img { border-radius: 8px; background: #fff; }
.wc-block-components-order-summary-item__quantity { background: var(--blue) !important; color: #fff !important; }
.wc-block-components-order-summary-item__description .wc-block-components-product-name { font-size: 13px !important; }
.wc-block-components-totals-item__description { color: var(--muted); font-size: 11px; }
.wc-block-components-express-payment { margin-bottom: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); }
.wc-block-components-express-payment__title { color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.wc-block-components-validation-error { color: #b42318 !important; font-size: 12px !important; font-weight: 700; }

/* Order confirmation, account and mini-cart blocks */
.wp-block-woocommerce-order-confirmation-status,
.wp-block-woocommerce-order-confirmation-summary,
.wp-block-woocommerce-order-confirmation-totals-wrapper,
.wp-block-woocommerce-order-confirmation-billing-address,
.wp-block-woocommerce-order-confirmation-shipping-address {
  margin-bottom: 20px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.wp-block-woocommerce-order-confirmation-status { border-left: 5px solid #2d8a52; background: #effaf3; }
.wc-block-mini-cart__drawer .components-modal__content { background: var(--paper); }
.wc-block-mini-cart__title { color: var(--ink); font-weight: 850; }
.wc-block-mini-cart__items { background: #fff; }
.wc-block-mini-cart__footer { border-top: 1px solid var(--line); background: #fff; }
.wc-block-mini-cart__footer .wc-block-components-button { border-radius: 7px !important; }
.wp-block-woocommerce-customer-account a { color: var(--ink); }

/* Defensive integrations */
.woocommerce-page .select2-dropdown { border-color: var(--line); }
.woocommerce-page .select2-results__option--highlighted { background: var(--blue) !important; }
.woocommerce-page #stripe-card-element,
.woocommerce-page .wc-stripe-elements-field { min-height: 50px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.ppc-button-wrapper,
#ppc-button { margin-top: 14px; }

@media (max-width: 1020px) {
  .wc-block-grid__products,
  .wp-block-woocommerce-product-collection .wc-block-product-template,
  .wp-block-woocommerce-product-template { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wc-block-components-sidebar-layout { display: block !important; }
  .wc-block-components-sidebar-layout .wc-block-components-main,
  .wc-block-components-sidebar-layout .wc-block-components-sidebar { width: 100% !important; }
  .wc-block-components-sidebar-layout .wc-block-components-sidebar { margin-top: 28px; }
  .wc-block-checkout__sidebar { position: static; }
}

@media (max-width: 720px) {
  .alignwide,
  .alignfull { width: 100%; margin-left: 0; transform: none; }
  .wp-block-columns { gap: 18px; }
  .wc-block-cart-items { display: block !important; border: 0 !important; background: transparent; }
  .wc-block-cart-items thead { display: none !important; }
  .wc-block-cart-items tbody,
  .wc-block-cart-items tr { display: block !important; }
  .wc-block-cart-items tr { position: relative; margin-bottom: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
  .wc-block-cart-items td { display: block !important; width: auto !important; padding: 0 !important; border: 0 !important; }
  .wc-block-cart-items td.wc-block-cart-item__image { position: absolute; top: 15px; left: 15px; width: 82px !important; }
  .wc-block-cart-item__image img { width: 72px !important; height: 72px !important; }
  .wc-block-cart-items td.wc-block-cart-item__product { min-height: 82px; padding-left: 92px !important; }
  .wc-block-cart-items td.wc-block-cart-item__total { margin-top: 12px; padding-top: 12px !important; border-top: 1px solid var(--line) !important; text-align: right; }
  .wc-block-cart__sidebar,
  .wc-block-checkout__sidebar,
  .wc-block-components-checkout-step { padding: 18px !important; }
  .wc-block-checkout__actions_row { display: flex; flex-direction: column-reverse; align-items: stretch; }
  .wc-block-checkout__actions_row .wc-block-components-button { width: 100%; }
}

@media (max-width: 520px) {
  .wc-block-grid__products,
  .wp-block-woocommerce-product-collection .wc-block-product-template,
  .wp-block-woocommerce-product-template { grid-template-columns: 1fr; }
  .wpcf7-form { padding: 18px; }
  .wc-block-components-address-form { display: block !important; }
  .wc-block-components-address-form > * { width: 100% !important; margin-bottom: 12px !important; }
}

/* =========================================================
   V6.1 — CHECKOUT HARDENING
   Supports classic shortcode checkout and current Woo blocks.
   ========================================================= */
body.woocommerce-checkout .woocommerce-main { background: var(--paper); }
body.woocommerce-checkout .woocommerce-main .woo-shell { width: min(1180px,calc(100% - 48px)); padding-top: 36px; }
body.woocommerce-checkout .compact-shop-header { margin-bottom: 28px; padding-bottom: 22px; }
body.woocommerce-checkout .compact-shop-header h1 { font-size: clamp(34px,4vw,52px); }

/* Classic WooCommerce checkout DOM needs explicit grid areas. */
.woocommerce-checkout form.checkout {
  display: grid !important;
  grid-template-columns: minmax(0,1.08fr) minmax(360px,.92fr) !important;
  grid-template-areas:
    "customer review-title"
    "customer review" !important;
  column-gap: 36px !important;
  row-gap: 0 !important;
  align-items: start;
}
.woocommerce-checkout form.checkout #customer_details { grid-area: customer; display: grid; gap: 18px; }
.woocommerce-checkout form.checkout #order_review_heading {
  grid-area: review-title;
  margin: 0 !important;
  padding: 20px 22px;
  border-radius: 13px 13px 0 0;
  background: var(--ink);
  color: #fff;
  font-size: 22px;
  line-height: 1.15;
}
.woocommerce-checkout form.checkout #order_review {
  grid-area: review;
  position: sticky;
  top: 112px;
  margin: 0;
  padding: 0 20px 20px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 13px 13px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(8,17,31,.07);
}
.woocommerce-checkout form.checkout #customer_details .col-1,
.woocommerce-checkout form.checkout #customer_details .col-2 {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(8,17,31,.045);
}
.woocommerce-checkout form.checkout #customer_details h3 { margin-bottom: 22px; font-size: 23px; font-weight: 850; }
.woocommerce-checkout form.checkout .form-row label { margin-bottom: 7px; color: #39465a; font-size: 12px; }
.woocommerce-checkout form.checkout .form-row input.input-text,
.woocommerce-checkout form.checkout .form-row textarea,
.woocommerce-checkout form.checkout .form-row select,
.woocommerce-checkout form.checkout .select2-container .select2-selection--single {
  width: 100%;
  min-height: 50px;
  border: 1px solid #cfd6e1;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}
.woocommerce-checkout form.checkout .form-row input.input-text:focus,
.woocommerce-checkout form.checkout .form-row textarea:focus,
.woocommerce-checkout form.checkout .form-row select:focus,
.woocommerce-checkout form.checkout .select2-container--focus .select2-selection--single {
  border-color: var(--blue);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(40,100,255,.12);
}
.woocommerce-checkout form.checkout #order_review table.shop_table {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.woocommerce-checkout form.checkout #order_review table.shop_table th,
.woocommerce-checkout form.checkout #order_review table.shop_table td { padding: 14px 4px !important; background: transparent; }
.woocommerce-checkout form.checkout #order_review table.shop_table thead th { color: var(--muted); font-size: 10px; }
.woocommerce-checkout form.checkout #order_review table.shop_table tfoot tr:last-child th,
.woocommerce-checkout form.checkout #order_review table.shop_table tfoot tr:last-child td { color: var(--ink); font-size: 18px; font-weight: 900; }
.woocommerce-checkout form.checkout #payment { margin-top: 16px; border-color: var(--line); }
.woocommerce-checkout form.checkout #payment ul.payment_methods { padding: 16px !important; }
.woocommerce-checkout form.checkout #payment li.wc_payment_method + li.wc_payment_method { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.woocommerce-checkout form.checkout #payment label { color: var(--ink); font-weight: 800; }
.woocommerce-checkout form.checkout #payment img { max-height: 28px; width: auto; margin-left: 8px; }
.woocommerce-checkout form.checkout #payment div.payment_box { margin: 12px 0 4px; padding: 14px; }
.woocommerce-checkout form.checkout #payment .place-order { padding: 16px !important; }
.woocommerce-checkout form.checkout #payment #place_order {
  min-height: 58px;
  border-radius: 7px !important;
  background: var(--blue) !important;
  color: #fff !important;
  font-size: 15px;
  font-weight: 900;
}
.woocommerce-checkout form.checkout #payment #place_order:hover { background: var(--blue-deep) !important; }
.woocommerce-checkout form.checkout .woocommerce-privacy-policy-text,
.woocommerce-checkout form.checkout .woocommerce-terms-and-conditions-wrapper { color: var(--muted); font-size: 11px; line-height: 1.55; }

/* Current Checkout block. */
body.woocommerce-checkout .wp-block-woocommerce-checkout { max-width: 1180px; margin-inline: auto; }
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-sidebar-layout { gap: 36px; }
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout__main { width: calc(62% - 18px); }
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout__sidebar { width: calc(38% - 18px); }
body.woocommerce-checkout .wc-block-components-checkout-step {
  margin-bottom: 14px !important;
  padding: 22px !important;
  box-shadow: 0 10px 34px rgba(8,17,31,.04);
}
body.woocommerce-checkout .wc-block-components-checkout-step__container { padding: 0 !important; }
body.woocommerce-checkout .wc-block-components-checkout-step__title { font-size: 20px !important; }
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-combobox .components-combobox-control__input,
body.woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__select { font-size: 14px !important; }
body.woocommerce-checkout .wc-block-checkout__sidebar {
  top: 112px;
  padding: 22px !important;
  background: #fff;
  box-shadow: 0 18px 50px rgba(8,17,31,.07);
}
body.woocommerce-checkout .wc-block-components-order-summary-item__image img { padding: 5px; border: 1px solid var(--line); }
body.woocommerce-checkout .wc-block-components-payment-method-icons img,
body.woocommerce-checkout .wc-block-components-radio-control__label img { max-height: 28px; width: auto; }
body.woocommerce-checkout .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button {
  width: min(100%,420px);
  margin-left: auto;
  background: var(--blue) !important;
}

@media (max-width: 1020px) {
  .woocommerce-checkout form.checkout {
    grid-template-columns: 1fr !important;
    grid-template-areas: "customer" "review-title" "review" !important;
    row-gap: 20px !important;
  }
  .woocommerce-checkout form.checkout #order_review_heading { margin-bottom: -20px !important; }
  .woocommerce-checkout form.checkout #order_review { position: static; }
  body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout__main,
  body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout__sidebar { width: 100% !important; }
}

@media (max-width: 620px) {
  body.woocommerce-checkout .woocommerce-main .woo-shell { width: min(100% - 24px,1180px); padding-top: 24px; }
  .woocommerce-checkout form.checkout #customer_details .col-1,
  .woocommerce-checkout form.checkout #customer_details .col-2,
  body.woocommerce-checkout .wc-block-components-checkout-step,
  body.woocommerce-checkout .wc-block-checkout__sidebar { padding: 17px !important; }
  .woocommerce-checkout form.checkout #order_review { padding-inline: 14px; }
  .woocommerce-checkout form.checkout #order_review_heading { padding: 17px; }
  body.woocommerce-checkout .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button { width: 100%; }
}

/* =========================================================
   V6.2 — MOBILE CART / CHECKOUT COLLISION REPAIR
   ========================================================= */
@media (max-width: 720px) {
  body.woocommerce-cart .woocommerce-main .woo-shell,
  body.woocommerce-checkout .woocommerce-main .woo-shell { width: min(100% - 24px,1180px); padding-block: 24px 58px; }

  .woocommerce-cart table.cart td.actions {
    display: flex !important;
    width: 100% !important;
    flex-direction: column;
    gap: 10px;
    padding: 14px !important;
    text-align: left !important;
  }
  .woocommerce-cart table.cart td.actions::before { display: none !important; }
  .woocommerce-cart table.cart td.actions .coupon {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: minmax(0,1fr) minmax(108px,auto);
    gap: 8px;
    float: none !important;
  }
  .woocommerce-cart table.cart td.actions .coupon label { display: none; }
  .woocommerce-cart table.cart td.actions .coupon .input-text {
    width: 100% !important;
    min-width: 0;
    min-height: 46px;
    margin: 0 !important;
  }
  .woocommerce-cart table.cart td.actions .coupon .button {
    width: auto !important;
    min-width: 108px;
    min-height: 46px;
    margin: 0 !important;
    padding-inline: 12px !important;
    white-space: normal;
    line-height: 1.15;
  }
  .woocommerce-cart table.cart td.actions > .button[name="update_cart"] {
    width: 100% !important;
    min-height: 46px;
    margin: 0 !important;
    float: none !important;
  }

  .woocommerce-cart .cart-collaterals { margin-top: 22px; }
  .woocommerce-cart .cart-collaterals .cart_totals {
    width: 100% !important;
    padding: 18px !important;
    border-radius: 12px;
  }
  .woocommerce-cart .cart-collaterals .cart_totals h2 { margin: 0 0 15px; font-size: 28px; }
  .woocommerce-cart .cart-collaterals .cart_totals table.shop_table_responsive tr {
    display: table-row !important;
    padding: 0 !important;
  }
  .woocommerce-cart .cart-collaterals .cart_totals table.shop_table_responsive th,
  .woocommerce-cart .cart-collaterals .cart_totals table.shop_table_responsive td {
    display: table-cell !important;
    width: auto !important;
    padding: 14px 4px !important;
    border-top: 1px solid var(--line) !important;
    text-align: left !important;
    vertical-align: top !important;
  }
  .woocommerce-cart .cart-collaterals .cart_totals table.shop_table_responsive th { width: 34% !important; font-size: 13px; }
  .woocommerce-cart .cart-collaterals .cart_totals table.shop_table_responsive td { text-align: right !important; font-size: 14px; }
  .woocommerce-cart .cart-collaterals .cart_totals table.shop_table_responsive td::before { display: none !important; }
  .woocommerce-cart .cart-collaterals .woocommerce-shipping-methods { margin: 0; padding: 0; list-style: none; }
  .woocommerce-cart .cart-collaterals .woocommerce-shipping-methods li { display: flex; justify-content: flex-end; gap: 7px; margin: 0 0 8px; }
  .woocommerce-cart .cart-collaterals .woocommerce-shipping-methods label { font-size: 13px; line-height: 1.35; }
  .woocommerce-cart .cart-collaterals .woocommerce-shipping-destination { margin: 9px 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
  .woocommerce-cart .cart-collaterals .shipping-calculator-button { display: inline-block; font-size: 12px; }
  .woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    min-height: 52px;
    margin-bottom: 0 !important;
    padding: 0 14px !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
  }

  /* Modern Cart block equivalents. */
  body.woocommerce-cart .wc-block-cart__sidebar { padding: 17px !important; }
  body.woocommerce-cart .wc-block-cart__totals-title { font-size: 22px !important; }
  body.woocommerce-cart .wc-block-components-totals-item { font-size: 13px; }
  body.woocommerce-cart .wc-block-cart__submit-button { min-height: 52px !important; }

  /* Prevent payment and address controls from escaping narrow screens. */
  body.woocommerce-checkout .woocommerce,
  body.woocommerce-checkout form.checkout,
  body.woocommerce-checkout #customer_details,
  body.woocommerce-checkout #order_review,
  body.woocommerce-checkout .wp-block-woocommerce-checkout,
  body.woocommerce-checkout .wc-block-components-sidebar-layout { min-width: 0; max-width: 100%; }
  body.woocommerce-checkout .form-row-first,
  body.woocommerce-checkout .form-row-last { width: 100% !important; float: none !important; }
  body.woocommerce-checkout #payment li,
  body.woocommerce-checkout #payment label { overflow-wrap: anywhere; }
}

/* =========================================================
   V6.4 — PAYMENT, BUTTON AND CHECKOUT POLISH
   Stripe renders secure controls inside iframes. Style only the
   surrounding layout; never turn an entire Stripe wrapper into an input.
   ========================================================= */

/* Complete the button system across search, classic WooCommerce flows,
   account forms and plugin-neutral submit controls. */
.search-form button[type="submit"],
.widget_product_search button[type="submit"],
.woocommerce form.login button.button,
.woocommerce form.register button.button,
.woocommerce form.checkout_coupon button.button,
.woocommerce .shipping-calculator-form button.button,
.woocommerce button[name="apply_coupon"],
.woocommerce button[name="update_cart"] {
  min-height: 46px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--ink) !important;
  color: #fff !important;
  line-height: 1.15 !important;
  font-weight: 850 !important;
  text-align: center;
  box-shadow: none !important;
}
.search-form button[type="submit"] { min-width: 110px; }
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  white-space: normal;
  text-align: center;
}
.woocommerce a.button:focus-visible,
.woocommerce button.button:focus-visible,
.woocommerce input.button:focus-visible,
.wp-block-button__link:focus-visible,
.wp-element-button:focus-visible,
.wc-block-components-button:focus-visible {
  outline: 3px solid rgba(40,100,255,.28) !important;
  outline-offset: 3px;
}
.woocommerce a.button.disabled,
.woocommerce button.button:disabled,
.woocommerce button.button.disabled,
.woocommerce input.button:disabled {
  opacity: .52 !important;
  cursor: not-allowed !important;
}

/* Cart: make the principal checkout action a genuinely centred button. */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 56px !important;
  margin-bottom: 0 !important;
  padding: 0 20px !important;
  line-height: 1.2 !important;
  text-align: center !important;
}
.woocommerce-cart .cart-collaterals .cart_totals { overflow: hidden; }
.woocommerce-cart .cart-collaterals .cart_totals .wc-proceed-to-checkout {
  display: grid;
  gap: 10px;
  padding: 0 !important;
}

/* Stripe express checkout: remove only theme-generated chrome. Stripe owns
   availability, sizing and layout for Apple Pay, Google Pay and Link. */
#wc-stripe-express-checkout-element > .StripeElement {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Classic checkout: remove native fieldset chrome around Stripe's Payment
   Element. This is the extra grey rectangle visible around the card UI. */
.woocommerce-checkout #payment { overflow: hidden; }
.woocommerce-checkout #payment ul.payment_methods {
  margin: 0 !important;
  list-style: none !important;
}
.woocommerce-checkout #payment li.wc_payment_method {
  min-width: 0;
  margin: 0 !important;
}
.woocommerce-checkout #payment li.wc_payment_method > label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.woocommerce-checkout #payment input[type="radio"],
.woocommerce-checkout #payment input[type="checkbox"] {
  flex: 0 0 auto;
  accent-color: var(--blue);
}
.woocommerce-checkout #payment div.payment_box {
  min-width: 0;
  margin: 12px 0 4px !important;
  padding: 14px !important;
  overflow: hidden;
  border: 0 !important;
  box-shadow: none !important;
}
.woocommerce-checkout #wc-stripe-upe-form,
.woocommerce-checkout fieldset.wc-upe-form,
.woocommerce-checkout fieldset#wc-stripe-upe-form {
  display: block;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.woocommerce-checkout .wc-stripe-upe-element,
.woocommerce-checkout .wc-stripe-upe-element iframe {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
.woocommerce-checkout #payment .place-order {
  margin: 0 !important;
  padding: 18px !important;
}
.woocommerce-checkout #payment .woocommerce-privacy-policy-text { margin-bottom: 14px; }
.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper label.checkbox {
  display: flex !important;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.45;
}
.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0 !important;
}
.woocommerce-checkout #payment #place_order {
  display: flex !important;
  width: 100% !important;
  min-height: 58px !important;
  float: none !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 20px !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

/* Login/coupon drawers and the expanded shipping calculator are part of the
   checkout journey too, so they use the same form treatment. */
.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register,
.woocommerce .shipping-calculator-form {
  box-sizing: border-box;
  max-width: 100%;
}
.woocommerce .shipping-calculator-form .form-row { width: 100% !important; }
.woocommerce .shipping-calculator-form button.button { min-width: 124px; }

@media (max-width: 720px) {
  .woocommerce-checkout #payment ul.payment_methods { padding: 14px !important; }
  .woocommerce-checkout #payment div.payment_box { padding: 10px !important; }
  .woocommerce-checkout #payment .place-order { padding: 14px !important; }
  .woocommerce-checkout-review-order { padding: 14px; }
}

/* =========================================================
   V6.4.1 — CONTACT PAGE REPAIR
   Replaces abandoned WPBakery wrappers with a native, responsive layout.
   ========================================================= */
.automodz-contact-page .compact-page-header { padding-bottom: 22px; }
.automodz-contact-grid {
  display: grid;
  grid-template-columns: minmax(0,1.45fr) minmax(280px,.55fr);
  gap: 28px;
  align-items: start;
  margin-top: 28px;
}
.automodz-contact-form-card { min-width: 0; }
.automodz-contact-form-card > p:first-child {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}
.automodz-contact-page .wpcf7 { width: 100%; }
.automodz-contact-page .wpcf7-form {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 16px 44px rgba(8,17,31,.05);
}
.automodz-contact-page .wpcf7-form p { margin: 0 0 18px; }
.automodz-contact-page .wpcf7-form p:last-of-type { margin-bottom: 0; }
.automodz-contact-page .wpcf7-form label {
  display: block;
  margin: 0;
  color: #334158;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 850;
}
.automodz-contact-page .wpcf7-form-control-wrap { display: block; }
.automodz-contact-page .wpcf7-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.automodz-contact-page .wpcf7-form textarea {
  width: 100%;
  margin-top: 8px;
  border-color: var(--line);
  background: #fff;
}
.automodz-contact-page .wpcf7-form textarea {
  min-height: 190px;
  max-height: 360px;
}
.automodz-contact-page .wpcf7-submit {
  min-width: 150px;
  min-height: 50px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}
.automodz-contact-page .wpcf7-submit:hover { background: var(--blue-deep); }
.automodz-contact-page .wpcf7-spinner { vertical-align: middle; }
.automodz-contact-help {
  position: sticky;
  top: 128px;
  padding: 28px;
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(40,100,255,.32), transparent 45%),
    var(--ink);
  color: #d8e0ee;
}
.automodz-contact-help .automodz-contact-kicker {
  margin: 0 0 18px;
  color: var(--lime);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .14em;
}
.automodz-contact-help h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(26px,2.5vw,36px);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.automodz-contact-help > p:not(.automodz-contact-kicker) {
  margin: 0 0 18px;
  color: #b8c3d4;
  font-size: 14px;
  line-height: 1.65;
}
.automodz-contact-help ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.automodz-contact-help li {
  position: relative;
  margin: 0;
  padding: 10px 0 10px 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
}
.automodz-contact-help li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--lime);
  font-weight: 900;
}
.automodz-contact-reply {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: 12px;
}
.automodz-contact-reply span { color: #94a2b8; }
.automodz-contact-reply strong { color: #fff; }

@media (max-width: 900px) {
  .automodz-contact-grid { grid-template-columns: 1fr; }
  .automodz-contact-help { position: static; }
}

@media (max-width: 620px) {
  .automodz-contact-page .compact-page-header h1 { font-size: 40px; }
  .automodz-contact-grid { margin-top: 20px; gap: 18px; }
  .automodz-contact-form-card > p:first-child { font-size: 16px; }
  .automodz-contact-page .wpcf7-form,
  .automodz-contact-help { padding: 20px; }
  .automodz-contact-page .wpcf7-form textarea { min-height: 160px; }
  .automodz-contact-page .wpcf7-submit { width: 100%; }
  .automodz-contact-reply { flex-direction: column; gap: 4px; }
}

/* =========================================================
   V6.4.2 — EXPRESS PAYMENTS / CHECKOUT FLOW
   Keep Stripe in control of wallet eligibility and place available wallets
   above billing instead of allowing CSS Grid to push them below the form.
   ========================================================= */
.woocommerce-checkout form.checkout #wc-stripe-express-checkout-element {
  grid-area: express;
  width: 100%;
  max-width: 100%;
  align-self: start;
}
.woocommerce-checkout form.checkout #wc-stripe-express-checkout-button-separator {
  grid-area: separator;
  width: 100%;
  margin: 8px 0 18px !important;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
}
.woocommerce-checkout form.checkout #wc-stripe-express-checkout__order-attribution-inputs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.woocommerce-checkout form.checkout:not(.automodz-express-ready) #wc-stripe-express-checkout-element {
  position: absolute;
  left: -10000px;
  width: min(548px,100%) !important;
  pointer-events: none;
}
.woocommerce-checkout form.checkout:not(.automodz-express-ready) #wc-stripe-express-checkout-button-separator {
  display: none !important;
}

@media (min-width: 1021px) {
  .woocommerce-checkout form.checkout.automodz-express-ready {
    grid-template-areas:
      "express review-title"
      "separator review"
      "customer review" !important;
    row-gap: 0 !important;
  }
}

@media (max-width: 1020px) {
  .woocommerce-checkout form.checkout.automodz-express-ready {
    grid-template-areas:
      "express"
      "separator"
      "customer"
      "review-title"
      "review" !important;
    row-gap: 20px !important;
  }
  .woocommerce-checkout form.checkout.automodz-express-ready #order_review_heading {
    margin-bottom: -20px !important;
  }
}

/* Stripe creates this sizing probe for its secure iframe. It must never look
   like a customer-facing checkout field. */
.woocommerce-checkout #wc-stripe-hidden-style-input {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Reduce the remaining box-inside-a-box effect around the secure Stripe UI. */
.woocommerce-checkout #payment div.payment_box.payment_method_stripe {
  margin: 12px 0 0 !important;
  padding: 0 !important;
  overflow: visible;
  background: #fff !important;
}
.woocommerce-checkout #payment div.payment_box.payment_method_stripe::before { display: none !important; }

/* Woo's login/coupon toggles retain an icon pseudo-element after their notice
   boxes are restyled; removing it fixes the clipped square seen on checkout. */
.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info,
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
  padding: 16px 20px !important;
}
.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info::before,
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before {
  display: none !important;
}

/* Contact Form 7's normal light Turnstile widget is a horizontal control.
   Give it breathing room without trying to restyle Cloudflare's secure frame. */
.automodz-contact-page .wpcf7-turnstile {
  display: flex !important;
  width: 100%;
  min-height: 65px;
  align-items: center;
  justify-content: flex-start;
  margin: 2px 0 18px;
  overflow: visible;
}

@media (max-width: 420px) {
  .automodz-contact-page .wpcf7-turnstile { max-width: 100%; }
}

/* =========================================================
   V6.4.3 — CART ALIGNMENT / CLEAR CHECKOUT DECISIONS
   Centre the cart summary and turn delivery/payment into deliberate steps.
   ========================================================= */
body.woocommerce-cart .cart-collaterals::after {
  display: table;
  clear: both;
  content: "";
}
body.woocommerce-cart .cart-collaterals .cart_totals {
  float: none !important;
  width: min(100%,760px) !important;
  margin: 34px auto 0 !important;
}

/* Explain the wallets that Stripe adds beneath the normal checkout route. */
body.woocommerce-cart .wc-proceed-to-checkout .automodz-express-label {
  display: block;
  width: 100%;
  margin: 18px 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}
body.woocommerce-cart .wc-proceed-to-checkout .automodz-express-label[hidden] {
  display: none !important;
}
body.woocommerce-cart .wc-proceed-to-checkout #wc-stripe-express-checkout-element {
  margin-top: 0 !important;
}

/* Give shipping methods the full order-summary width. Woo's default table
   otherwise squeezes both choices into the narrow subtotal column. */
.woocommerce-checkout #order_review tr.woocommerce-shipping-totals.shipping {
  display: grid !important;
  grid-template-columns: 1fr;
  padding: 14px 4px !important;
  border-top: 1px solid var(--line);
}
.woocommerce-checkout #order_review tr.woocommerce-shipping-totals.shipping > th,
.woocommerce-checkout #order_review tr.woocommerce-shipping-totals.shipping > td {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  text-align: left !important;
}
.woocommerce-checkout #order_review tr.woocommerce-shipping-totals.shipping > th {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0;
}
.woocommerce-checkout #order_review tr.woocommerce-shipping-totals.shipping > th::before {
  content: "Delivery options";
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.woocommerce-checkout #order_review #shipping_method {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.woocommerce-checkout #order_review #shipping_method li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.woocommerce-checkout #order_review #shipping_method li:has(input:checked) {
  border-color: var(--blue);
  background: #edf3ff;
  box-shadow: 0 0 0 2px rgba(40,100,255,.1);
}
.woocommerce-checkout #order_review #shipping_method input {
  width: 17px;
  height: 17px;
  margin: 0 !important;
  flex: 0 0 auto;
  accent-color: var(--blue);
}
.woocommerce-checkout #order_review #shipping_method label {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
}

/* Integrate payment into the order card instead of showing a card inside a
   card. Stripe keeps full control of its secure iframe and method accordion. */
.woocommerce-checkout form.checkout #order_review #payment {
  margin-top: 4px !important;
  overflow: visible;
  border: 0 !important;
  border-top: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.woocommerce-checkout form.checkout #payment ul.payment_methods {
  padding: 18px 4px !important;
  border-bottom: 0 !important;
  background: transparent !important;
}
.woocommerce-checkout form.checkout #payment li.payment_method_stripe > label {
  display: block !important;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 900;
}
.woocommerce-checkout form.checkout #payment li.payment_method_stripe > label::after {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  content: "Card, Clearpay, Direct Debit or Klarna";
  font-size: 11px;
  line-height: 1.45;
  font-weight: 650;
}
.woocommerce-checkout form.checkout #payment .place-order {
  padding: 18px 4px 4px !important;
  border-top: 1px solid var(--line);
  background: transparent !important;
}
.woocommerce-checkout form.checkout #payment .place-order::before {
  display: block;
  margin: 0 0 13px;
  color: #27744a;
  content: "Secure encrypted payment";
  font-size: 11px;
  line-height: 1.4;
  font-weight: 850;
}
.woocommerce-checkout form.checkout #payment #place_order {
  margin-top: 4px !important;
}

@media (max-width: 620px) {
  body.woocommerce-cart .cart-collaterals .cart_totals { margin-top: 22px !important; }
  .woocommerce-checkout #order_review #shipping_method { grid-template-columns: 1fr; }
}

/* =========================================================
   V6.5 — PRODUCT CONTENT AND IMAGE SEO
   Consistent, readable product summaries with unique descriptive copy.
   ========================================================= */
.featured-products .priority-card {
  display: grid;
  grid-template-rows: auto 1fr;
}
.featured-products .priority-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.featured-products .priority-description {
  min-height: 66px;
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.featured-products .priority-price-row {
  margin-top: auto;
}

.woocommerce div.product .summary .automodz-product-summary-copy > p:first-child {
  margin: 0 0 15px;
  color: #536076;
  font-size: 16px;
  line-height: 1.7;
}
.automodz-product-summary-list {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.automodz-product-summary-list li {
  position: relative;
  margin: 0;
  padding-left: 23px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 750;
}
.automodz-product-summary-list li::before {
  position: absolute;
  left: 0;
  color: #2d9b5f;
  content: "✓";
  font-weight: 900;
}
.woocommerce div.product .summary .automodz-compatibility-note {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  background: #f2f6ff;
  color: #45536a;
  font-size: 12px;
  line-height: 1.55;
}

.automodz-seo-product-copy {
  margin-bottom: 30px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--soft);
}
.automodz-seo-product-copy > h3,
.automodz-original-product-details > h3 {
  margin: 0 0 13px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.automodz-seo-product-copy > p {
  max-width: 900px;
  margin: 0;
  color: #536076;
  line-height: 1.7;
}
.automodz-seo-product-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 24px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.automodz-seo-product-grid h4 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 14px;
}
.automodz-seo-product-grid ul {
  margin: 0;
  padding-left: 19px;
}
.automodz-seo-product-grid li,
.automodz-seo-product-grid p {
  margin: 0 0 7px;
  color: #536076;
  font-size: 13px;
  line-height: 1.6;
}
.automodz-original-product-details {
  margin-top: 28px;
}

@media (max-width: 720px) {
  .featured-products .priority-description { min-height: 0; }
  .automodz-seo-product-copy { padding: 20px; }
  .automodz-seo-product-grid { grid-template-columns: 1fr; gap: 17px; }
}

/* =========================================================
   V6.5.1 — CATALOGUE BUTTON / HARMONISED PRODUCT COPY
   ========================================================= */
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
  display: inline-flex !important;
  width: auto;
  height: auto !important;
  min-height: 48px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 11px 18px !important;
  overflow: visible !important;
  line-height: 1.2 !important;
  white-space: normal;
}
.automodz-harmonised-description {
  color: #536076;
  font-size: 15px;
  line-height: 1.75;
}
.automodz-harmonised-description h2 {
  margin: 32px 0 12px;
  color: var(--ink);
  font-size: clamp(24px,3vw,34px);
  line-height: 1.15;
  letter-spacing: -.03em;
}
.automodz-harmonised-description h2:first-child { margin-top: 0; }
.automodz-harmonised-description p { max-width: 920px; }
.automodz-harmonised-description ul {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.automodz-harmonised-description li {
  position: relative;
  margin: 0;
  padding: 12px 14px 12px 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}
.automodz-harmonised-description li::before {
  position: absolute;
  left: 14px;
  color: #2d9b5f;
  content: "✓";
  font-weight: 900;
}
.automodz-harmonised-description a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 620px) {
  .automodz-harmonised-description ul { grid-template-columns: 1fr; }
}
