
/* =========================================================
   TiviMode – Checkout v8
   Clean light checkout inspired by the supplied reference.
   ========================================================= */

.tvm-checkout-v8{
  --v8-blue:#2563eb;
  --v8-blue-dark:#1d4ed8;
  --v8-blue-soft:#eef4ff;
  --v8-green:#16a34a;
  --v8-green-soft:#ecfdf3;
  --v8-text:#0f1f3d;
  --v8-muted:#53627d;
  --v8-subtle:#7b879e;
  --v8-border:#dbe3f0;
  --v8-bg:#f4f7fd;
  --v8-card:#fff;
  --v8-radius:12px;
  --v8-shadow:0 8px 30px rgba(29,55,100,.07);
  width:100%;
  max-width:100%;
  color:var(--v8-text);
  font-family:var(--font-body,'Inter',Arial,sans-serif);
  background:linear-gradient(180deg,#f6f9ff 0%,#f3f7fd 100%);
  padding:0 0 3.5rem;
  margin:0;
}
.tvm-checkout-v8 *,
.tvm-checkout-v8 *::before,
.tvm-checkout-v8 *::after{box-sizing:border-box}
.tvm-checkout-v8 a{color:var(--v8-blue)}
.tvm-checkout-v8 button,
.tvm-checkout-v8 input,
.tvm-checkout-v8 select,
.tvm-checkout-v8 textarea{font-family:inherit}

/* Heading */
.tvm-checkout-heading{
  max-width:1180px;
  margin:0 auto;
  padding:1.35rem 1.5rem 1.65rem;
}
.tvm-checkout-breadcrumb{
  display:flex;align-items:center;gap:.5rem;
  color:#71809b;font-size:.78rem;margin-bottom:1.35rem;
}
.tvm-checkout-breadcrumb a{display:flex;align-items:center;gap:.35rem;color:#71809b;text-decoration:none}
.tvm-checkout-breadcrumb strong{color:#21304b;font-weight:600}
.tvm-checkout-breadcrumb svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tvm-checkout-heading-row{display:flex;align-items:flex-end;justify-content:space-between;gap:2rem}
.tvm-checkout-title-line{display:flex;align-items:center;gap:.8rem}
.tvm-checkout-title-line h1{
  margin:0!important;padding:0!important;border:0!important;
  font-family:var(--font-display,'Outfit',sans-serif)!important;
  color:var(--v8-text)!important;font-size:clamp(2rem,3.5vw,2.55rem)!important;
  font-weight:800!important;line-height:1.1!important;letter-spacing:-.035em!important;
}
.tvm-checkout-heading-row p{margin:.45rem 0 0;color:var(--v8-muted);font-size:.92rem}
.tvm-secure-chip{
  width:30px;height:30px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;
  background:#e8f0ff;color:var(--v8-blue);border:1px solid #d4e1ff;
}
.tvm-secure-chip svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tvm-heading-security{display:flex;align-items:center;gap:.65rem;color:#44536f;font-size:.8rem;max-width:210px;line-height:1.45;padding-bottom:.15rem}
.tvm-heading-security svg{width:20px;height:20px;flex:0 0 auto;fill:none;stroke:#657594;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* Grid */
.tvm-checkout-v8-form{max-width:1180px;margin:0 auto;padding:0 1.5rem}
.tvm-checkout-v8-grid{
  display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:1.1rem;align-items:start;
}
.tvm-checkout-main{min-width:0}
.tvm-checkout-sidebar{min-width:0;position:sticky;top:92px}

/* Notices / coupon */
.tvm-checkout-notice{
  display:flex;align-items:center;gap:.45rem;background:#f0f7ff;border:1px solid #cfe0ff;
  border-radius:10px;padding:.75rem 1rem;margin-bottom:.75rem;color:#24477e;font-size:.82rem;
}
.tvm-checkout-notice svg{width:16px;height:16px;fill:none;stroke:#2563eb;stroke-width:1.8;flex:0 0 auto}
.tvm-checkout-notice a{font-weight:600;text-decoration:underline}
.tvm-coupon-panel{background:#fff;border:1px solid var(--v8-border);border-radius:10px;margin-bottom:.8rem;box-shadow:0 2px 8px rgba(31,58,100,.03)}
.tvm-coupon-toggle{
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:1rem;border:0;background:transparent;
  padding:.82rem 1rem;color:#20304d;font-size:.84rem;font-weight:600;text-align:left;cursor:pointer;
}
.tvm-coupon-toggle-left{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap}
.tvm-coupon-toggle-left u{font-weight:500;color:var(--v8-blue);text-decoration:underline;text-underline-offset:2px}
.tvm-coupon-icon{width:25px;height:25px;border-radius:7px;background:#eef4ff;color:var(--v8-blue);display:flex;align-items:center;justify-content:center}
.tvm-coupon-icon svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tvm-coupon-chevron{width:16px;height:16px;fill:none;stroke:#3561aa;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
.tvm-coupon-toggle[aria-expanded="true"] .tvm-coupon-chevron{transform:rotate(180deg)}
.tvm-coupon-fields{padding:0 1rem 1rem}
.tvm-coupon-input-row{display:flex;gap:.55rem}
.tvm-coupon-input-row input{flex:1;min-width:0}
.tvm-coupon-input-row button{min-width:92px;border:1px solid var(--v8-blue)!important;background:#fff!important;color:var(--v8-blue)!important;border-radius:8px!important;font-weight:700!important}

/* Cards */
.tvm-checkout-card,.tvm-sidebar-card{
  background:var(--v8-card);border:1px solid var(--v8-border);border-radius:var(--v8-radius);
  box-shadow:var(--v8-shadow);overflow:hidden;margin-bottom:.8rem;
}
.tvm-card-heading,.tvm-sidebar-heading{
  display:flex;align-items:center;gap:.7rem;padding:1.05rem 1.15rem;border-bottom:1px solid #e5eaf2;
  background:#fff;
}
.tvm-card-heading-icon,.tvm-sidebar-icon{
  width:34px;height:34px;border-radius:10px;background:#edf3ff;color:var(--v8-blue);
  display:flex;align-items:center;justify-content:center;flex:0 0 auto;
}
.tvm-card-heading-icon svg,.tvm-sidebar-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tvm-card-heading h2,.tvm-sidebar-heading h2{
  margin:0!important;padding:0!important;border:0!important;color:var(--v8-text)!important;
  font-family:var(--font-display,'Outfit',sans-serif)!important;font-size:1rem!important;font-weight:750!important;
  line-height:1.25!important;
}
.tvm-card-heading p{margin:.18rem 0 0;color:#7b879e;font-size:.73rem}
.tvm-card-body{padding:1.15rem!important}

/* WooCommerce billing fields */
.tvm-checkout-v8 .woocommerce-billing-fields__field-wrapper{display:block}
.tvm-checkout-v8 .form-row{margin:0 0 .9rem!important;padding:0!important}
.tvm-checkout-v8 .form-row label{
  display:block!important;margin:0 0 .35rem!important;padding:0!important;
  color:#1a2946!important;font-size:.76rem!important;font-weight:650!important;letter-spacing:.01em!important;
  text-transform:none!important;
}
.tvm-checkout-v8 .form-row label .required{color:#ef4444!important;text-decoration:none!important}
.tvm-checkout-v8 input.input-text,
.tvm-checkout-v8 select,
.tvm-checkout-v8 textarea{
  width:100%!important;height:44px!important;padding:.65rem .8rem!important;
  border:1px solid #cfd9e9!important;border-radius:8px!important;background:#fff!important;color:var(--v8-text)!important;
  font-size:.87rem!important;outline:none!important;box-shadow:none!important;
  transition:border-color .18s,box-shadow .18s,background .18s!important;
}
.tvm-checkout-v8 textarea{height:auto!important;min-height:90px!important}
.tvm-checkout-v8 input.input-text::placeholder{color:#9aa6b9!important}
.tvm-checkout-v8 input.input-text:hover,.tvm-checkout-v8 select:hover{border-color:#aebbd0!important}
.tvm-checkout-v8 input.input-text:focus,.tvm-checkout-v8 select:focus,.tvm-checkout-v8 textarea:focus{
  border-color:var(--v8-blue)!important;box-shadow:0 0 0 3px rgba(37,99,235,.10)!important;background:#fff!important;
}
.tvm-checkout-v8 .form-row-first,.tvm-checkout-v8 .form-row-last{
  width:calc(50% - .45rem)!important;float:left!important;clear:none!important;
}
.tvm-checkout-v8 .form-row-first{margin-right:.9rem!important}
.tvm-checkout-v8 .form-row-wide{width:100%!important;float:none!important;clear:both!important}
.tvm-checkout-v8 .form-row::after{content:"";display:table;clear:both}
.tvm-checkout-v8 .woocommerce-input-wrapper{display:block!important;width:100%!important}
.tvm-checkout-v8 .select2-container{width:100%!important}
.tvm-checkout-v8 .select2-container .select2-selection--single{height:44px!important;border:1px solid #cfd9e9!important;border-radius:8px!important}
.tvm-checkout-v8 .select2-container .select2-selection__rendered{line-height:42px!important;padding-left:.8rem!important;font-size:.87rem!important}
.tvm-checkout-v8 .select2-container .select2-selection__arrow{height:42px!important}
.tvm-checkout-v8 .form-row.woocommerce-invalid input,.tvm-checkout-v8 .form-row.woocommerce-invalid select{border-color:#ef4444!important}
.tvm-checkout-v8 .form-row.woocommerce-validated input{border-color:#86cfa3!important}

/* Privacy / payment security */
.tvm-privacy-note{
  display:flex;align-items:center;justify-content:center;gap:.4rem;margin:.1rem 0 0;padding:.65rem 0 0;
  color:#71809a;font-size:.71rem;border-top:1px solid #eef1f6;
}
.tvm-privacy-note svg{width:14px;height:14px;fill:none;stroke:#8190aa;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tvm-payment-security{
  display:flex;align-items:center;gap:.45rem;background:#f4f9f6;border:1px solid #d7eddf;border-radius:8px;
  padding:.65rem .75rem;margin-bottom:.9rem;color:#426653;font-size:.72rem;
}
.tvm-payment-security svg{width:15px;height:15px;fill:none;stroke:#16a34a;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}

/* Payment methods */
#payment,.woocommerce-checkout-payment{background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;margin:0!important}
.tvm-payment-methods,.tvm-checkout-v8 .wc_payment_methods{
  list-style:none!important;padding:0!important;margin:0 0 .85rem!important;display:flex!important;flex-direction:column!important;gap:.55rem!important;
}
.tvm-checkout-v8 .wc_payment_methods li.payment_method{
  position:relative;border:1.5px solid #d6dfed!important;border-radius:9px!important;background:#fff!important;
  overflow:hidden!important;transition:border-color .18s,background .18s,box-shadow .18s!important;
}
.tvm-checkout-v8 .wc_payment_methods li.payment_method.is-selected,
.tvm-checkout-v8 .wc_payment_methods li.payment_method:has(input[type="radio"]:checked){
  border-color:#5d8cf5!important;background:#f3f7ff!important;box-shadow:0 0 0 1px rgba(37,99,235,.08)!important;
}
.tvm-checkout-v8 .wc_payment_methods li.payment_method>label,
.tvm-checkout-v8 .wc_payment_methods li.payment_method label{
  display:flex!important;align-items:center!important;gap:.65rem!important;width:100%!important;margin:0!important;padding:.82rem .9rem!important;
  color:#172640!important;font-size:.84rem!important;font-weight:650!important;cursor:pointer!important;background:transparent!important;
}
.tvm-checkout-v8 .wc_payment_methods input[type=radio]{
  width:17px!important;height:17px!important;margin:0!important;accent-color:var(--v8-blue)!important;flex:0 0 auto;
}
.tvm-checkout-v8 .wc_payment_methods li.payment_method img{
  max-width:92px!important;max-height:26px!important;width:auto!important;height:auto!important;object-fit:contain!important;
}
.tvm-checkout-v8 .payment_box{
  margin:0!important;padding:.75rem .9rem .85rem!important;background:#f8faff!important;
  border-top:1px solid #e1e8f4!important;color:#63728c!important;font-size:.77rem!important;line-height:1.55!important;
  max-width:100%!important;overflow:hidden!important;
}
.tvm-checkout-v8 .payment_box input,.tvm-checkout-v8 .payment_box select{max-width:100%!important}
.tvm-checkout-v8 .payment_method_nowpayments label{flex-wrap:wrap}
.tvm-checkout-v8 .payment_method_nowpayments .payment_box{background:#f8faff!important}

/* Terms and secure CTA */
.tvm-checkout-v8 .woocommerce-terms-and-conditions-wrapper{margin:.8rem 0 .7rem}
.tvm-checkout-v8 .woocommerce-privacy-policy-text{font-size:.72rem;color:#687791;line-height:1.55}
.tvm-checkout-v8 .validate-required .woocommerce-form__label-for-checkbox{display:flex!important;align-items:flex-start!important;gap:.5rem!important}
.tvm-checkout-v8 .validate-required input[type=checkbox]{width:16px;height:16px;margin:.1rem 0 0;accent-color:var(--v8-blue)}
.tvm-checkout-v8 .place-order{display:block!important;height:auto!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important}
.tvm-place-order,#place_order{
  display:flex!important;align-items:center!important;justify-content:center!important;gap:.5rem!important;width:100%!important;
  min-height:48px!important;padding:.85rem 1.2rem!important;margin:.65rem 0 0!important;
  border:0!important;border-radius:8px!important;background:linear-gradient(135deg,#2563eb,#1d4ed8)!important;
  color:#fff!important;font-family:var(--font-display,'Outfit',sans-serif)!important;font-size:.95rem!important;font-weight:750!important;
  cursor:pointer!important;box-shadow:0 6px 18px rgba(37,99,235,.25)!important;
  transition:transform .18s,box-shadow .18s,filter .18s!important;visibility:visible!important;opacity:1!important;
  position:static!important;clip:auto!important;clip-path:none!important;pointer-events:auto!important;
}
.tvm-place-order svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tvm-place-order:hover,#place_order:hover{filter:brightness(1.03);transform:translateY(-1px);box-shadow:0 9px 24px rgba(37,99,235,.32)!important}
.tvm-place-order:active,#place_order:active{transform:translateY(0)}
.tvm-checkout-trust{
  display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:.35rem .9rem;
  margin:.7rem 0 0;padding:.7rem 0 0;border-top:1px solid #e9edf4;color:#6e7c94;font-size:.7rem;
}
.tvm-checkout-trust span{display:inline-flex;align-items:center;gap:.3rem;white-space:nowrap}
.tvm-checkout-trust svg{width:13px;height:13px;color:var(--v8-green)}
.tvm-checkout-trust span+span{}

/* Summary */
.tvm-sidebar-heading{padding:1rem 1.1rem}
.tvm-sidebar-heading h2{font-size:1rem!important}
.tvm-summary-items{padding:.1rem 1.1rem}
.tvm-summary-item{
  display:flex;align-items:center;gap:.65rem;padding:.9rem 0;border-bottom:1px solid #e5eaf2;
}
.tvm-summary-product-icon{
  position:relative;width:42px;height:42px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;
  border-radius:9px;background:#eef3ff;color:#4d73e8;
}
.tvm-summary-product-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tvm-summary-product-icon b{
  position:absolute;right:-5px;top:-5px;min-width:17px;height:17px;padding:0 4px;border-radius:999px;
  background:var(--v8-blue);color:#fff;font-size:.6rem;display:flex;align-items:center;justify-content:center;
}
.tvm-summary-product-info{flex:1;min-width:0}
.tvm-summary-product-info strong{display:block;font-size:.82rem;color:#1c2c48;font-weight:700;line-height:1.35}
.tvm-summary-product-info small{display:block;margin-top:.15rem;color:#7a879c;font-size:.67rem;line-height:1.35}
.tvm-summary-price{font-size:.82rem;color:#172640;font-weight:750;white-space:nowrap}
.tvm-summary-totals{padding:.85rem 1.1rem 1rem}
.tvm-summary-totals>div{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.38rem 0;font-size:.78rem;color:#586780}
.tvm-summary-totals>div strong{color:#1d2c46;font-weight:650}
.tvm-summary-totals .tvm-summary-discount,.tvm-summary-totals .tvm-summary-discount strong,
.tvm-summary-totals .tvm-summary-free,.tvm-summary-totals .tvm-summary-free strong{color:var(--v8-green)}
.tvm-summary-totals .tvm-summary-total{
  border-top:1px solid #dfe6f1;margin-top:.35rem;padding:.8rem 0 .3rem;color:#12213d;font-size:1rem;font-weight:750;
}
.tvm-summary-totals .tvm-summary-total strong{color:var(--v8-blue);font-size:1.25rem;font-family:var(--font-display,'Outfit',sans-serif);font-weight:850}
.tvm-no-hidden{
  justify-content:center!important;gap:.35rem!important;color:#547064!important;font-size:.71rem!important;padding-top:.45rem!important;
}
.tvm-no-hidden svg{width:14px;height:14px;fill:none;stroke:#22a65a;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Why choose */
.tvm-why-list{list-style:none!important;margin:0!important;padding:.3rem 1.1rem 1rem!important}
.tvm-why-list li{
  display:flex;align-items:center;gap:.55rem;padding:.43rem 0;color:#23334e;font-size:.76rem;line-height:1.35;
}
.tvm-why-list li span{
  width:18px;height:18px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;
  background:#2f6cf1;color:#fff;font-size:.62rem;font-weight:800;flex:0 0 auto;
}

/* Help */
.tvm-help-card p{padding:0 1.1rem;margin:0 0 .55rem;color:#62718b;font-size:.76rem;line-height:1.55}
.tvm-help-line{
  display:flex;align-items:center;gap:.6rem;padding:.55rem 1.1rem;color:#24334d!important;text-decoration:none!important;
}
.tvm-help-line-icon{
  width:29px;height:29px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:0 0 auto;
  background:#edf3ff;color:#2563eb;
}
.tvm-help-line-icon svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tvm-help-line-icon.tvm-wa{background:#e9faef;color:#16a34a}
.tvm-help-line small{display:block;color:#75829a;font-size:.64rem;line-height:1.2}
.tvm-help-line strong{display:block;color:#24334d;font-size:.74rem;line-height:1.3;margin-top:.08rem;word-break:break-word}

/* Bottom trust */
.tvm-checkout-bottom-trust{
  display:grid;grid-template-columns:1fr auto 1fr auto 1fr auto 1fr;align-items:center;
  margin:.9rem 0 0;padding:1rem 1.1rem;background:#fff;border:1px solid var(--v8-border);border-radius:12px;
  box-shadow:0 3px 12px rgba(31,58,100,.04);
}
.tvm-checkout-bottom-trust>div{display:flex;align-items:center;gap:.55rem;justify-content:center;min-width:0}
.tvm-checkout-bottom-trust i{width:1px;height:34px;background:#dce4f0}
.tvm-bottom-icon{width:32px;height:32px;border-radius:50%;background:#edf3ff;color:#315fc8;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.tvm-bottom-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tvm-checkout-bottom-trust strong{display:block;color:#1d2c46;font-size:.7rem;font-weight:750;line-height:1.25}
.tvm-checkout-bottom-trust small{display:block;color:#7b879b;font-size:.62rem;line-height:1.25;margin-top:.1rem}

/* Woo errors/notices */
.tvm-checkout-v8 .woocommerce-error,
.tvm-checkout-v8 .woocommerce-message,
.tvm-checkout-v8 .woocommerce-info{
  border-radius:9px!important;padding:.8rem 1rem!important;margin:0 0 .75rem!important;
  border-left-width:3px!important;font-size:.78rem!important;
}
.tvm-checkout-v8 .woocommerce-error{background:#fff3f3!important;color:#9d3030!important;border-left-color:#ef4444!important}
.tvm-checkout-v8 .woocommerce-message{background:#effaf3!important;color:#187044!important;border-left-color:#16a34a!important}
.tvm-checkout-v8 .woocommerce-info{background:#eff5ff!important;color:#2858a5!important;border-left-color:#2563eb!important}

/* Remove old checkout-specific layout interference */
.tvm-checkout-v8 .otv7-card,
.tvm-checkout-v8 .otv7-summary-card,
.tvm-checkout-v8 .otv5-card{all:revert}
.tvm-checkout-v8 #order_review table,
.tvm-checkout-v8 .woocommerce-checkout-review-order-table{display:none!important}
.tvm-checkout-v8 .otv7-form .place-order{display:block!important}

/* Responsive */
@media (max-width:980px){
  .tvm-checkout-v8-grid{grid-template-columns:minmax(0,1fr) 310px}
  .tvm-checkout-heading-row{align-items:flex-start}
}
@media (max-width:820px){
  .tvm-checkout-v8-form{padding:0 1rem}
  .tvm-checkout-heading{padding-left:1rem;padding-right:1rem}
  .tvm-checkout-v8-grid{grid-template-columns:1fr}
  .tvm-checkout-sidebar{position:static}
  .tvm-checkout-sidebar{order:-1}
  .tvm-summary-card{order:-1}
}
@media (max-width:560px){
  .tvm-checkout-v8{padding-bottom:2.5rem}
  .tvm-checkout-heading{padding:.9rem .85rem 1rem}
  .tvm-checkout-heading-row{display:block}
  .tvm-heading-security{margin-top:.85rem;max-width:none}
  .tvm-checkout-title-line h1{font-size:1.9rem!important}
  .tvm-checkout-v8-form{padding:0 .75rem}
  .tvm-checkout-v8-grid{gap:.7rem}
  .tvm-card-heading,.tvm-sidebar-heading{padding:.9rem .85rem}
  .tvm-card-body{padding:.9rem!important}
  .tvm-checkout-v8 .form-row-first,.tvm-checkout-v8 .form-row-last{
    width:100%!important;float:none!important;margin-right:0!important;
  }
  .tvm-coupon-toggle-left{gap:.4rem}
  .tvm-coupon-toggle-left u{width:100%;padding-left:2rem;margin-top:-.1rem}
  .tvm-coupon-input-row{flex-direction:column}
  .tvm-coupon-input-row button{width:100%}
  .tvm-payment-security{align-items:flex-start}
  .tvm-checkout-bottom-trust{grid-template-columns:1fr 1fr;gap:.75rem;padding:.85rem}
  .tvm-checkout-bottom-trust i{display:none}
  .tvm-checkout-bottom-trust>div{justify-content:flex-start}
}
@media (max-width:390px){
  .tvm-checkout-title-line{gap:.55rem}
  .tvm-secure-chip{width:27px;height:27px}
  .tvm-checkout-v8 .card-body{padding:.8rem!important}
  .tvm-summary-product-info small{display:none}
  .tvm-checkout-bottom-trust{grid-template-columns:1fr}
}


/* =========================================================
   Checkout v1.5 polish / live-theme compatibility layer
   ========================================================= */
html body:has(.tvm-checkout-v8) .tvm-woo-main,
html body:has(.tvm-checkout-v8) .tvm-woo-container,
html body:has(.tvm-checkout-v8) #tvm-main {
  width:100%!important;max-width:none!important;margin:0!important;padding:0!important;
}
html body:has(.tvm-checkout-v8) .tvm-woo-container{overflow:visible!important}
html body:has(.tvm-checkout-v8) .woocommerce{max-width:none!important;margin:0!important;padding:0!important}
.tvm-checkout-v8-form{position:relative;z-index:1}
.tvm-checkout-v8 .tvm-last-name-hidden{display:none!important}
.tvm-checkout-v8 .tvm-full-name-field{width:100%!important;float:none!important;clear:both!important}
.tvm-checkout-v8 .form-row{box-sizing:border-box!important}
.tvm-checkout-v8 .form-row label{line-height:1.25!important}
.tvm-checkout-v8 .tvm-card-body .form-row:last-child{margin-bottom:.15rem!important}
.tvm-checkout-v8 .woocommerce-billing-fields{margin:0!important}
.tvm-checkout-v8 .woocommerce-billing-fields>h3{display:none!important}
.tvm-checkout-v8 .woocommerce-additional-fields{display:none!important}
.tvm-checkout-v8 .tvm-payment-card{overflow:visible!important}
.tvm-checkout-v8 .tvm-payment-area{min-width:0!important}
.tvm-checkout-v8 .wc_payment_methods{margin-top:0!important}
.tvm-checkout-v8 .wc_payment_methods li.payment_method>label img{margin-left:auto!important}
.tvm-checkout-v8 .wc_payment_methods li.payment_method .payment_box p:last-child{margin-bottom:0!important}
.tvm-checkout-v8 .woocommerce-terms-and-conditions-wrapper p{margin:.35rem 0!important}
.tvm-checkout-v8 #place_order.tvm-place-order{background:#2563eb!important;background-image:linear-gradient(135deg,#2563eb 0%,#1d4ed8 100%)!important}
.tvm-checkout-v8 .tvm-checkout-bottom-trust{margin-top:.2rem!important}

@media (min-width:1100px){
  .tvm-checkout-v8-form{max-width:1240px!important;padding:0 1.5rem!important}
  .tvm-checkout-heading{max-width:1240px!important}
  .tvm-checkout-v8-grid{grid-template-columns:minmax(0,1fr) 330px!important;gap:1rem!important}
}
@media (max-width:760px){
  .tvm-checkout-v8{padding-bottom:1.25rem!important}
  .tvm-checkout-heading{padding:.85rem .85rem 1rem!important}
  .tvm-checkout-heading-row{display:block!important}
  .tvm-heading-security{margin-top:.75rem!important;justify-content:flex-start!important}
  .tvm-checkout-v8-form{padding:0 .75rem!important}
  .tvm-checkout-card,.tvm-sidebar-card{border-radius:10px!important}
  .tvm-card-body{padding:1rem!important}
  .tvm-card-heading,.tvm-sidebar-heading{padding:.9rem 1rem!important}
  .tvm-checkout-v8 .wc_payment_methods li.payment_method>label{padding:.8rem!important}
  .tvm-summary-item{grid-template-columns:40px minmax(0,1fr) auto!important}
  .tvm-summary-price{font-size:.8rem!important}
}

/* =========================================================
   Reference checkout composition – cart confirmation row
   ========================================================= */
.tvm-cart-confirmation{
  display:flex;align-items:center;gap:.8rem;min-height:54px;margin:0 0 .8rem;padding:.72rem 1.05rem;
  background:rgba(255,255,255,.96);border:1px solid #e2e9f5;border-radius:10px;
  box-shadow:0 8px 24px rgba(29,55,100,.06);color:#1b2a45;font-size:.8rem;
}
.tvm-cart-confirmation-icon{
  width:21px;height:21px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
  border-radius:50%;background:#22c55e;color:#fff;
}
.tvm-cart-confirmation-icon svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.tvm-cart-confirmation-text{flex:1;min-width:0;font-weight:550}
.tvm-view-cart-button{
  display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:.45rem .9rem;
  border:1px solid #5d8cf5;border-radius:7px;background:#fff;color:#1d4ed8!important;
  font-size:.75rem;font-weight:700;text-decoration:none;white-space:nowrap;transition:background .18s,color .18s,transform .18s;
}
.tvm-view-cart-button:hover{background:#eef4ff;color:#1d4ed8!important;transform:translateY(-1px)}
.tvm-checkout-v8 .tvm-summary-item{padding:1rem 0}
.tvm-checkout-v8 .tvm-summary-product-info small{margin-top:.28rem;color:#667691;font-size:.72rem}
.tvm-checkout-v8 .tvm-summary-total{margin-top:.38rem;padding-top:.75rem!important;border-top:1px solid #e5eaf2;font-size:1.05rem!important;color:#0f1f3d!important}
.tvm-checkout-v8 .tvm-summary-total strong{color:#2563eb!important;font-size:1.2rem;font-weight:800!important}
.tvm-checkout-v8 .tvm-no-hidden{justify-content:center!important;margin-top:.35rem;color:#53627d!important;font-size:.73rem!important}
.tvm-checkout-v8 .tvm-no-hidden svg{width:16px;height:16px;color:#22c55e;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:560px){
  .tvm-cart-confirmation{align-items:flex-start;flex-wrap:wrap;gap:.55rem;padding:.75rem .85rem}
  .tvm-cart-confirmation-text{flex-basis:calc(100% - 32px)}
  .tvm-view-cart-button{margin-left:2rem;width:calc(100% - 2rem)}
}

/* =========================================================
   Live checkout conflict fix – highest-priority reference rules
   ========================================================= */
html body .tvm-checkout-v8{
  display:block!important;width:100%!important;max-width:none!important;min-width:0!important;
  margin:0!important;padding:0 0 3.5rem!important;background:linear-gradient(180deg,#f6f9ff 0%,#f3f7fd 100%)!important;
}
html body .tvm-checkout-v8-form,
html body .tvm-checkout-heading{
  width:100%!important;max-width:1180px!important;margin-left:auto!important;margin-right:auto!important;
}
html body .tvm-checkout-v8-form{padding:0 1.5rem!important;background:transparent!important}
html body .tvm-checkout-v8-grid{display:grid!important;width:100%!important;grid-template-columns:minmax(0,1fr) 330px!important;gap:1.1rem!important;align-items:start!important}
html body .tvm-checkout-main{display:block!important;width:100%!important;max-width:none!important;min-width:0!important}
html body .tvm-checkout-sidebar{display:block!important;width:100%!important;max-width:none!important;min-width:0!important;position:sticky!important;top:92px!important}
html body .tvm-checkout-v8 .tvm-place-order,
html body .tvm-checkout-v8 #place_order{
  display:flex!important;visibility:visible!important;opacity:1!important;width:100%!important;min-height:48px!important;
  background:#2563eb!important;background-image:linear-gradient(135deg,#2563eb 0%,#1d4ed8 100%)!important;
  color:#fff!important;border:0!important;border-radius:8px!important;position:static!important;clip:auto!important;
}
html body .tvm-checkout-v8 .tvm-checkout-main>.woocommerce-message{display:none!important}
html body .tvm-checkout-v8 .tvm-cart-confirmation{display:flex!important;width:100%!important;max-width:none!important}
@media (max-width:820px){
  html body .tvm-checkout-v8-form,html body .tvm-checkout-heading{max-width:none!important}
  html body .tvm-checkout-v8-grid{grid-template-columns:1fr!important}
  html body .tvm-checkout-sidebar{position:static!important;order:-1!important}
}
@media (max-width:560px){
  html body .tvm-checkout-v8-form{padding:0 .75rem!important}
  html body .tvm-checkout-heading{padding-left:.85rem!important;padding-right:.85rem!important}
}

/* ── Remove item from order summary ─────────────────────────── */
.tvm-sr-only{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.tvm-summary-item{transition:opacity .2s ease}
.tvm-summary-item.is-removing{opacity:.45;pointer-events:none}
.tvm-remove-item{display:inline-flex;align-items:center;gap:.3rem;margin-top:.35rem;padding:.2rem .1rem;min-height:28px;font-size:.72rem;font-weight:600;color:#b42318;text-decoration:none;border-radius:6px;cursor:pointer;transition:color .15s ease,background .15s ease}
.tvm-remove-item svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.tvm-remove-item:hover,.tvm-remove-item:focus-visible{color:#912018;text-decoration:underline}
.tvm-remove-item:focus-visible{outline:2px solid #5b3df5;outline-offset:2px}
.tvm-remove-item[aria-disabled="true"]{opacity:.6;cursor:progress}
@media (max-width:640px){
  .tvm-remove-item{min-height:44px;padding:.35rem .5rem .35rem 0;font-size:.8rem}
}
