/* =========================
   CART - Modern ZooCenter skin
   Scope: Cart + Checkout only (enqueued)
   ========================= */

/* Base */
body.woocommerce-cart,
body.woocommerce-checkout{
  background:#f6f8fb;
}

#zc-cart-hero{
  padding-top: 210px;
  padding-bottom: 26px;
  background: linear-gradient(180deg, rgba(36,158,186,.18), rgba(255,255,255,0));
}

@media (max-width: 980px){
  #zc-cart-hero{
    padding-top: 160px;
  }
}

#zc-cart-hero .zc-cart-hero__text h1{
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: .2px;
  margin: 0 0 10px 0;
  color:#0b1b24;
}

@media (max-width: 980px){
  #zc-cart-hero .zc-cart-hero__text h1{
    font-size: 32px;
    margin-bottom: 0;
    padding-bottom: 0;
  }
}

#zc-cart-hero .zc-cart-hero__sub{
  margin: 0 0 12px 0;
  color:#6b7a86;
  font-size: 15px;
}

#zc-cart-hero .zc-steps{
  display:flex;
  gap: 7px;
  flex-wrap:wrap;
  margin-top: 22px;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}

#zc-cart-hero .zc-step{
  display:inline-flex;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(11,27,36,.10);
  background:#fff;
  font-size: 13px;
  color:#0b1b24;
}

#zc-cart-hero .zc-step.is-active{
  border-color: rgba(251,134,0,.45);
  box-shadow: 0 10px 20px rgba(11,27,36,.06);
  background: linear-gradient(90deg, #fb8500 0%, #f44603 100%);
  color: #fff;
}

/* Sections spacing */
#zc-cart-body{
  padding-top: 10px;
  padding-bottom: 50px;
}

/* Cards */
.zc-card{
  background:#fff;
  border: 1px solid rgba(11,27,36,.10);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(11,27,36,.08);
  overflow: hidden;
}

.zc-cart-col--left .zc-card{
  padding: 10px;
  max-width: 400px;
  margin: 0 auto;
}

.zc-cart-col--right .zc-card{
  padding: 18px;
}

/* Sticky totals (desktop + mobile different header heights) */
.zc-is-sticky{
  /* position: sticky; */
  /* top: 225px; */ /* desktop header ~207px + spacing */
}

@media (max-width: 980px){
  .zc-is-sticky{
    position: static; /* on mobile better to not sticky */
    top: auto;
  }
}

/* If you WANT sticky even on mobile, uncomment this:
@media (max-width: 980px){
  .zc-is-sticky{ position: sticky; top: 170px; }
}
*/

/* Woo cart products table -> modern */
.woocommerce-cart-form{
  margin: 0;
}

table.shop_table.cart{
  border: 0;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0 10px;

  /* NOTE: You added this */
  display: flex;
  justify-content: center;
}

table.shop_table.cart thead{
  display:none;
}

/* Each row as a card */
table.shop_table.cart tbody tr.cart_item{
  background:#fff;
  border: 1px solid rgba(11,27,36,.10);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(11,27,36,.06);
}

table.shop_table.cart tbody tr.cart_item td{
  border: 0 !important;
  padding: 7px !important;
  vertical-align: middle;
}

table.shop_table.cart .product-remove{
  width: 60px;
  text-align: center;
}

table.shop_table.cart .product-remove a.remove{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255,91,91,.10);
  color:#ff5b5b !important;
  text-decoration:none;
  font-size: 18px;
  line-height: 1;
}

table.shop_table.cart .product-thumbnail{
  width: 90px !important;
  height: 90px;
}

table.shop_table.cart .product-thumbnail img{
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(11,27,36,.10);
}

table.shop_table.cart .product-name a{
  color:#0b1b24;
  font-weight: 700;
  text-decoration:none;
  font-size: 16px !important;
  padding-left: 10px;
}

table.shop_table.cart .product-name a:hover{
  color:#fb8600;
}

table.shop_table.cart .product-price,
table.shop_table.cart .product-subtotal{
  white-space: nowrap;
  text-align: right;
}

table.shop_table.cart .woocommerce-Price-amount.amount{
  display:inline-flex;
  flex-direction: column;
  align-items: flex-end !important;
  gap: 2px;
  font-weight: 800;
  color:#0b1b24;
  font-size: 16px !important;
}

table.shop_table.cart .woocommerce-Price-amount.amount bdi{
  font-size: 15px;
}

table.shop_table.cart .woocommerce-Price-amount.amount .krd-price-bgn{
  font-size: 12px;
  font-weight: 700;
  opacity: .70;
}

/* Quantity */
table.shop_table.cart .quantity{
  display:flex;
  justify-content: flex-end;
}

table.shop_table.cart tbody tr.cart_item td.product-subtotal {
    font-size: 15px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
}
table.shop_table.cart input.qty{
  width: 82px !important;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(11,27,36,.10);
  background:#fff;
  font-weight: 700;
  color:#0b1b24;
  padding: 8px 10px;
  box-shadow: none;
  text-align: right;
}

table.shop_table.cart input.qty:focus{
  outline:none;
  border-color: rgba(36,158,186,.55);
  box-shadow: 0 0 0 4px rgba(36,158,186,.12);
}

/* Actions row */
table.shop_table.cart tr td.actions{
  padding: 12px 0 0 0 !important;
  background: transparent;
  border: 0 !important;
}

table.shop_table.cart tr td.actions .coupon{
  display:flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0 0 10px 0;
}
table.shop_table.cart tr td.actions .coupon label{
  font-weight: bold;
  font-size: 15px;
  text-align: left;
}
/* Toggle button */
.krd-coupon-toggle{
  display:flex;
  align-items:center;
  width: 100%;
  padding: 12px 14px;
  border: 1px dashed rgba(11,27,36,.18);
  color: #ffffff;
  font-weight: 800;
  cursor:pointer;
  background: #249eba;
  border-radius: 40px;
}

.krd-coupon-toggle:after{
  content:"\25BE"; /* ▾ */
  font-size: 14px;
  opacity: .7;
}

.krd-coupon-toggle.is-open:after{
  content:"\25B4"; /* ▴ */
}

.krd-coupon-panel{
  background:#fff;
  border: 1px solid rgba(11,27,36,.10);
  border-radius: 14px;
  padding: 12px;
}

/* Coupon inner controls */
.krd-coupon-panel label{
  display:none;
}

.krd-coupon-panel input#coupon_code{
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(11,27,36,.10);
  padding: 10px 12px;
  margin: 0 0 10px 0;
}

.krd-coupon-panel button[name="apply_coupon"]{
  width: 100%;
  height: 44px;
  border: 0;
  color:#fff;
  font-weight: 900;
  cursor:pointer;

  background: linear-gradient(180deg, #fb8500 0%, #f44603 100%) !important;
  box-shadow: 0 16px 44px rgba(244, 70, 3, 0.18);
  border-color: rgba(255, 255, 255, 0.10) !important;
  border-radius: 40px !important;

  min-width: 150px;
}

/* Update cart button */
button[name="update_cart"]{
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(11,27,36,.10);
  background:#fff;
  font-weight: 900;
  color:#0b1b24;
  padding: 0 16px;
}

button[name="update_cart"][disabled]{
  opacity: .55;
  cursor: not-allowed;

  background: linear-gradient(180deg, #fb8500 0%, #f44603 100%) !important;
  box-shadow: 0 16px 44px rgba(244, 70, 3, 0.18);
  border-color: rgba(255, 255, 255, 0.10) !important;

  border-radius: 40px !important;
  color: #fff !important;
}

/* Totals card */
.zc-cart-totals .cart_totals > h2{
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 900;
  color:#0b1b24;
}

.zc-cart-totals table.shop_table{
  border: 0;
  margin: 0 0 12px 0;
}

.zc-cart-totals table.shop_table th,
.zc-cart-totals table.shop_table td{
  border-color: rgba(11,27,36,.08);
  padding: 10px 0;
  color:#0b1b24;
  font-size: 16px;
}

.zc-cart-totals .order-total th,
.zc-cart-totals .order-total td{
  font-weight: 900;
}

.zc-cart-totals .woocommerce-Price-amount.amount{
  display:inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.zc-cart-totals .woocommerce-Price-amount.amount bdi{
  font-size: 16px;
  font-weight: 900;
}

.zc-cart-totals .woocommerce-Price-amount.amount .krd-price-bgn{
  font-size: 12px;
  font-weight: 800;
  opacity:.70;
}

/* Proceed button */
.wc-proceed-to-checkout{
  margin-top: 12px;
}

.wc-proceed-to-checkout .rate_cart_page{
  display:block;
  font-size: 12px;
  opacity: .70;
  margin-bottom: 8px;
}

.wc-proceed-to-checkout a.checkout-button{
  display:flex !important;
  align-items:center;
  justify-content:center;
  width: 100%;
  height: 52px;
  color: #ffffff !important;
  font-weight: 1000;
  letter-spacing:.2px;
  border: 0 !important;

  background: linear-gradient(180deg, #fb8500 0%, #f44603 100%) !important;
  box-shadow: 0 16px 44px rgba(244, 70, 3, 0.18);
  border-color: rgba(255, 255, 255, 0.10) !important;
  border-radius: 40px !important;
}

.wc-proceed-to-checkout a.checkout-button:hover{
  filter: brightness(1.03);
}

/* Trust card */
.zc-cart-trust .zc-card__title{
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 900;
  color:#0b1b24;
}

.zc-trust-list{
  margin: 0;
  padding-left: 18px;
  color:#6b7a86;
  line-height: 1.5;
}

/* Remove cross-sells if theme outputs them somewhere */
.woocommerce .cross-sells,
.woocommerce .cart-collaterals .cross-sells{
  display:none !important;
}

/* Mobile: turn each cart row into stacked layout */
@media (max-width: 980px){
  table.shop_table.cart{
    border-spacing: 0 12px;
  }

  table.shop_table.cart tbody tr.cart_item{
    display:flex;
    /* grid-template-columns: 44px 86px 1fr; */
    /* grid-auto-rows: auto; */
    /* gap: 10px; */
    padding: 10px;
    flex-direction: column;
  }

  table.shop_table.cart tbody tr.cart_item td{
    padding: 0;
  }

  table.shop_table.cart .product-remove{grid-column: 1;grid-row: 1;border-top-left-radius: 10px;border-top-right-radius: 10px;}
  table.shop_table.cart .product-thumbnail{grid-column: 2;grid-row: 1;}
  table.shop_table.cart .product-name{grid-column: 3;grid-row: 1;text-align: right;}

  table.shop_table.cart .product-price{grid-column: 2 / 4;grid-row: 2;text-align:left;font-size: 14px;}
  table.shop_table.cart .product-quantity{ grid-column: 2 / 4; grid-row: 3; }
  table.shop_table.cart .product-subtotal{ grid-column: 2 / 4; grid-row: 4; text-align:left; }

  table.shop_table.cart .woocommerce-Price-amount.amount{
    align-items:flex-start;
  }

  table.shop_table.cart .quantity{
    /* justify-content:flex-start; */
  }

  button[name="update_cart"]{
    width: 100%;
    margin-top: 10px;
  }
}


/* =========================
   EXTRA MODERN EFFECTS (append)
   ========================= */

/* Smoothness & subtle motion */
#zc-cart-hero,
#zc-cart-body,
.zc-card,
table.shop_table.cart tbody tr.cart_item,
table.shop_table.cart .product-remove a.remove,
table.shop_table.cart .product-thumbnail img,
.krd-coupon-toggle,
.krd-coupon-panel,
.krd-coupon-panel button[name="apply_coupon"],
button[name="update_cart"],
.wc-proceed-to-checkout a.checkout-button,
table.shop_table.cart input.qty{
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, opacity .18s ease, background .18s ease, border-color .18s ease;
}

/* Hero: subtle animated sheen */
#zc-cart-hero{
  position: relative;
  overflow: hidden;
}
#zc-cart-hero:before{
  content:"";
  position:absolute;
  inset:-40%;
  background: radial-gradient(circle at 30% 30%, rgba(251,133,0,.18), rgba(255,255,255,0) 55%),
              radial-gradient(circle at 70% 40%, rgba(36,158,186,.18), rgba(255,255,255,0) 55%);
  filter: blur(10px);
  transform: rotate(8deg);
  pointer-events:none;
}
#zc-cart-hero:after{
  content:"";
  position:absolute;
  top:-40%;
  left:-20%;
  width: 60%;
  height: 180%;
  background: linear-gradient(115deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.35) 35%, rgba(255,255,255,0) 70%);
  opacity:.35;
  transform: translateX(-60%);
  pointer-events:none;
  animation: zcHeroSheen 9s ease-in-out infinite;
}
@keyframes zcHeroSheen{
  0%   { transform: translateX(-60%) rotate(8deg); opacity:.18; }
  40%  { transform: translateX(130%) rotate(8deg); opacity:.35; }
  100% { transform: translateX(130%) rotate(8deg); opacity:.18; }
}

/* Steps: hover pop + active glow */
#zc-cart-hero .zc-step{
  position: relative;
  overflow: hidden;
}
#zc-cart-hero .zc-step:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(11,27,36,.10);
}
#zc-cart-hero .zc-step.is-active{
  box-shadow: 0 18px 40px rgba(251,133,0,.16), 0 10px 24px rgba(11,27,36,.06);
}
#zc-cart-hero .zc-step:after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.35) 40%, rgba(255,255,255,0) 80%);
  transform: translateX(-120%);
  opacity: .6;
  pointer-events:none;
}
#zc-cart-hero .zc-step:hover:after{
  transform: translateX(120%);
  transition: transform .55s ease;
}

/* Cards: premium border glow on hover */
.zc-card{
  position: relative;
}
.zc-card:before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(36,158,186,.25), rgba(251,133,0,.22), rgba(255,255,255,0));
  opacity: 0;
  pointer-events:none;
  transition: opacity .18s ease;
  z-index: 0;
}
.zc-card > *{
  position: relative;
  z-index: 1;
}
.zc-card:hover:before{
  opacity: 1;
}
.zc-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(11,27,36,.12);
}

/* Cart item rows: hover lift + subtle left accent bar */
table.shop_table.cart tbody tr.cart_item{
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
  max-width: 400px !important;
}
table.shop_table.cart tbody tr.cart_item:before{
  content:"";
  position:absolute;
  left:0;
  top:12px;
  bottom:12px;
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(36,158,186,1) 0%, rgba(251,133,0,1) 100%);
  opacity: .0;
  transform: translateX(-6px);
  transition: opacity .18s ease, transform .18s ease;
}
table.shop_table.cart tbody tr.cart_item:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(11,27,36,.10);
}
table.shop_table.cart tbody tr.cart_item:hover:before{
  opacity: 1;
  transform: translateX(0);
}
.woocommerce-cart table.cart td.actions .coupon .input-text {
    border-radius: 50px;
    width: 100%;
}


table.shop_table.cart tr td.actions .coupon .button {
    border-radius: 50px;
    margin-bottom: 30px;
    font-size: 16px;
    width: 240px;
}

a.checkout-button.button.alt.wc-forward {
    max-width: 300px;
    font-size: 16px;
    margin: 0 auto;
}

/* Thumbnail: micro zoom on hover */
table.shop_table.cart .product-thumbnail img{
  transform: translateZ(0);
}
table.shop_table.cart tbody tr.cart_item:hover .product-thumbnail img{
  transform: scale(1.04);
  filter: saturate(1.05);
}

/* Remove button: stronger feedback */
table.shop_table.cart .product-remove a.remove:hover{
  transform: translateY(-1px) scale(1.03);
  filter: brightness(1.02);
  box-shadow: 0 14px 28px rgba(255,91,91,.18);
}
table.shop_table.cart .product-remove a.remove:active{
  transform: translateY(0) scale(.99);
}

/* Inputs: premium focus ring */
table.shop_table.cart input.qty:focus,
.krd-coupon-panel input#coupon_code:focus{
  outline: none;
  border-color: rgba(36,158,186,.55) !important;
  box-shadow: 0 0 0 5px rgba(36,158,186,.14) !important;
}

/* Buttons: glossy highlight + hover lift */
.krd-coupon-toggle,
.krd-coupon-panel button[name="apply_coupon"],
button[name="update_cart"],
.wc-proceed-to-checkout a.checkout-button{
  position: relative;
  overflow: hidden;
}
.krd-coupon-toggle:before,
.krd-coupon-panel button[name="apply_coupon"]:before,
button[name="update_cart"]:before,
.wc-proceed-to-checkout a.checkout-button:before{
  content:"";
  position:absolute;
  top:-60%;
  left:-40%;
  width: 70%;
  height: 220%;
  background: linear-gradient(115deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.28) 45%, rgba(255,255,255,0) 80%);
  transform: translateX(-70%) rotate(10deg);
  opacity:.55;
  pointer-events:none;
}
.krd-coupon-toggle:hover:before,
.krd-coupon-panel button[name="apply_coupon"]:hover:before,
button[name="update_cart"]:hover:before,
.wc-proceed-to-checkout a.checkout-button:hover:before{
  transform: translateX(180%) rotate(10deg);
  transition: transform .65s ease;
}
.krd-coupon-toggle:hover,
.krd-coupon-panel button[name="apply_coupon"]:hover,
button[name="update_cart"]:hover,
.wc-proceed-to-checkout a.checkout-button:hover{
  transform: translateY(-2px);
}
.krd-coupon-toggle:active,
.krd-coupon-panel button[name="apply_coupon"]:active,
button[name="update_cart"]:active,
.wc-proceed-to-checkout a.checkout-button:active{
  transform: translateY(0);
}

/* Totals: highlight the final total row */
.zc-cart-totals .order-total{
  position: relative;
}
.zc-cart-totals .order-total th,
.zc-cart-totals .order-total td{
  padding-top: 14px !important;
}
.zc-cart-totals .order-total:before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:1px;
  background: rgba(11,27,36,.08);
}
.zc-cart-totals .order-total td strong{
  display:inline-block;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(36,158,186,.08);
  border: 1px solid rgba(36,158,186,.18);
  min-width: 95px;
}

/* BGN line: make it feel like a note */
.woocommerce-Price-amount.amount .krd-price-bgn{
  position: relative;
  padding-left: 0;
}
.woocommerce-Price-amount.amount .krd-price-bgn:before{
  content:"\2248  "; /* ≈ */
  opacity:.75;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  #zc-cart-hero:after{
    animation: none !important;
  }
  *{
    transition: none !important;
  }
}


@media (min-width: 769px) {
  table.shop_table.cart tbody tr.cart_item {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

table.shop_table.cart .product-remove {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

table.shop_table.cart tbody tr.cart_item td.product-subtotal {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}
    table.shop_table.cart .product-name{
      width: calc(100% - 90px);text-align: right;}

}

/* =========================
   CART PATCH - layout polish + sticky + premium interactions
   ========================= */

/* 1) Sticky totals on desktop only (header ~207px) */
@media (min-width: 981px){
  .zc-cart-col--right .zc-is-sticky{
    /* position: sticky !important; */
    /* top: 225px !important; */ /* 207 + spacing */
  }
  .zc-cart-col--left .zc-card {
    max-width: unset;
}
  a.checkout-button.button.alt.wc-forward {
    font-size: 14px;
}

tr.woocommerce-shipping-totals.shipping td {
    font-size: 14px;
    text-align: right;
}
  table.shop_table.cart tbody tr.cart_item td.product-subtotal {
    width: 95px !important;
}

table.shop_table.cart .product-thumbnail a {
    width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

table.shop_table.cart tbody tr.cart_item td.product-price {
    width: 95px !important;
}

table.shop_table.cart tbody tr.cart_item td.product-quantity {
    max-width: 96px !important;
    display: flex;
}

table.shop_table.cart tbody tr.cart_item {
    gap: 5px;
}

table.shop_table.cart tbody tr.cart_item td.product-name {display: flex;margin-left: 10px;}

table.shop_table.cart tbody tr.cart_item{display: flex;flex-direction: row;justify-content: space-evenly;align-items: center;max-width: unset !important;flex-wrap: nowrap;}
/* 2) Actions row: coupon toggle + update button on one row */
table.shop_table.cart tr td.actions{
  display:flex;
  justify-content:space-between;
  align-items: flex-start;
  gap:14px;
  flex-wrap:wrap;
  padding: 14px 12px 6px !important;
  width: 100% !important;
}

/* Coupon wrapper should take the left side */
table.shop_table.cart tr td.actions .coupon{
  flex: 1 1 150px;
  margin: 0 !important;
  max-width: 250px;
}

/* Update button on the right */
table.shop_table.cart tr td.actions button[name="update_cart"]{
  flex: 0 0 auto;
  min-width: 240px;
  height: 44px;
  border-radius: 40px !important;
}

/* Enabled update button = gradient CTA */
table.shop_table.cart tr td.actions button[name="update_cart"]:not([disabled]){
  background: linear-gradient(180deg, #fb8500 0%, #f44603 100%) !important;
  box-shadow: 0 16px 44px rgba(244, 70, 3, 0.18);
  border: 0 !important;
  color:#fff !important;
}

/* Disabled update button = neutral */
table.shop_table.cart tr td.actions button[name="update_cart"][disabled]{
  background: #eef2f6 !important;
  box-shadow: none !important;
  border: 1px solid rgba(11,27,36,.10) !important;
  color: #94a3ad !important;
  opacity: 1 !important;
  font-size: 16px;
}

/* 3) Coupon toggle polish */
.krd-coupon-toggle{
  justify-content: space-between;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
}

/* Panel separation + soft shadow */
.krd-coupon-panel{
  margin-top: 10px;
  box-shadow: 0 18px 40px rgba(11,27,36,.08);
}

/* 4) Cart item spacing + better alignment */
table.shop_table.cart tbody tr.cart_item td.product-name{
  padding-right: 10px !important;
  font-size: 14px !important;
  border-top-right-radius: 10px;
}

/* Clamp long titles (2 lines) */
table.shop_table.cart .product-name a{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
table.shop_table.cart .product-remove {
    width: 40px;
}
table.shop_table.cart tbody tr.cart_item td.product-price,
table.shop_table.cart tbody tr.cart_item td.product-subtotal{
  width: 100%;
}
input#coupon_code {border-radius: 50px;}

.et_pb_wc_cart_products table.cart td.actions .coupon .button {
    border-radius: 50px;
    font-size: 16px;
    padding: 7px;
    width: 240px;
    margin-bottom: 0 !important;
}

table.shop_table.cart tbody tr.cart_item td.product-quantity{
  width: 100%;
  font-size: 14px !important;
}

table.shop_table.cart tbody tr.cart_item td.product-quantity .quantity{
  /* justify-content: center; */
}

/* 5) Totals card: slightly more premium background */
.zc-cart-totals.zc-card{
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

/* Clean separators inside totals */
.zc-cart-totals .cart_totals table.shop_table tr{
  border-bottom: 1px solid rgba(11,27,36,.06);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
}
.zc-cart-totals .cart_totals table.shop_table tr:last-child{
  border-bottom: 0;
}


  .wc-proceed-to-checkout a.checkout-button{
    position: relative;
  }
  .wc-proceed-to-checkout a.checkout-button:after{
    content:"";
    position:absolute;
    inset:-10px;
    border-radius: 46px;
    background: radial-gradient(circle at 30% 30%, rgba(251,133,0,.28), rgba(244,70,3,0) 70%);
    opacity: 0;
    filter: blur(10px);
    transition: opacity .25s ease;
    z-index: -1;
  }
  .wc-proceed-to-checkout a.checkout-button:hover:after{
    opacity: .95;
  }
  table.shop_table.cart tr td.actions .coupon label {
    text-align: left;
    padding-left: 10px;
}

.woocommerce-cart table.cart td.actions .coupon .input-text {
    width: 240px;
    height: 52px;
}

table.shop_table.cart tr td.actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

table.shop_table.cart tr td.actions button[name="update_cart"] {}



}

/* 7) Mobile: actions stacked nicely */
@media (max-width: 980px){
  table.shop_table.cart tr td.actions{
    flex-direction: column;
    align-items: stretch;
  }
  table.shop_table.cart tr td.actions .coupon{
    width: 100%;
    max-width: none;
  }
  table.shop_table.cart tr td.actions button[name="update_cart"]{
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 16px;
  }
}



/* =========================
   KRD Modern Checkout (Divi)
   Scope: .krd-checkout-*
   ========================= */

.krd-checkout-hero{
  padding:0 !important;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(255,177,90,.25), rgba(0,0,0,0) 60%),
              radial-gradient(900px 500px at 80% 10%, rgba(63,223,129,.18), rgba(0,0,0,0) 55%),
              linear-gradient(180deg, #070B18, #0B1020);
}
.krd-checkout-hero .et_pb_row{max-width:1200px; margin:0 auto; padding:54px 18px 30px;}
.krd-hero-wrap{color:#E8ECFF;}
.krd-hero-badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px; border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  font-size:13px; letter-spacing:.2px;
}
.krd-hero-title{margin:14px 0 8px; font-size:44px; line-height:1.06; color:#E8ECFF;}
.krd-hero-sub{margin:0; max-width:780px; font-size:16px; opacity:.9;}

.krd-steps{display:flex; gap:10px; margin-top:18px; flex-wrap:wrap;}
.krd-step{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px; border-radius:14px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}
.krd-step-num{
  width:28px; height:28px; border-radius:10px;
  display:inline-flex; align-items:center; justify-content:center;
  background:rgba(255,177,90,.18);
  border:1px solid rgba(255,177,90,.28);
  color:#FFB15A; font-weight:700;
}
.krd-step-txt{font-size:14px; opacity:.95;}

.krd-checkout-main{background:#f6f8fb; padding:0 !important;}
.krd-checkout-main .et_pb_row{max-width:1200px; margin:0 auto; padding:26px 18px 10px;}
.krd-checkout-faq{background:#f6f8fb; padding:0 !important;}
.krd-checkout-faq .et_pb_row{max-width:1200px; margin:0 auto; padding:10px 18px 54px;}

.krd-h2{margin:0 0 6px; font-size:26px; line-height:1.15; color:#0b1b24;}
.krd-muted{margin:0; color:#44505a; font-size:14px;}

.krd-checkout-head{
  display:flex; justify-content:space-between; gap:16px;
  margin-bottom:16px; align-items:flex-start; flex-wrap:wrap;
}
.krd-support{
  background:#ffffff;
  border:1px solid #e7ecf2;
  border-radius:16px;
  padding:14px 14px;
  min-width:260px;
  box-shadow:0 10px 28px rgba(10,28,55,.06);
}
.krd-support-title{font-weight:700; margin-bottom:6px; color:#0b1b24;}
.krd-support-line{font-size:13px; color:#44505a;}
.krd-support a{color:#0b1b24; text-decoration:none; border-bottom:1px dashed rgba(11,27,36,.25);}

.krd-trust-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
  margin-top:18px;
}
.krd-trust-card{
  background:#ffffff;
  border:1px solid #e7ecf2;
  border-radius:18px;
  padding:14px 14px;
  box-shadow:0 10px 28px rgba(10,28,55,.06);
}
.krd-trust-title{font-weight:800; color:#0b1b24; margin-bottom:6px;}
.krd-trust-text{color:#44505a; font-size:13px; line-height:1.45;}

@media (max-width:980px){
  .krd-hero-title{font-size:34px;}
  .krd-trust-grid{
	  grid-template-columns: 1fr;
	}
  .krd-support{min-width:100%;}
}

/* Woo Checkout layout (2 колони + sticky резюме) */
.krd-checkout-main .woocommerce{background:transparent;}
.krd-checkout-main form.woocommerce-checkout{
  display:flex;
  gap:18px;
  align-items:flex-start;
  flex-wrap:wrap;
}
.krd-checkout-main #customer_details{
  flex: 1 1 620px;
  background:#ffffff;
  border:1px solid #e7ecf2;
  border-radius:20px;
  padding:18px;
  box-shadow:0 10px 28px rgba(10,28,55,.06);
}
.krd-checkout-main #order_review_heading{display:none !important;}
.krd-checkout-main #order_review{
  flex: 0 0 420px;
  max-width:420px;
  background:#ffffff;
  border:1px solid #e7ecf2;
  border-radius:20px;
  padding:18px;
  box-shadow:0 10px 28px rgba(10,28,55,.06);
  position:sticky;
  top:110px;
}

@media (max-width:980px){
  .krd-checkout-main form.woocommerce-checkout{display:block;}
  .krd-checkout-main #order_review{
    position:static;
    max-width:none;
    margin-top:14px;
  }
}

/* Field styling */
.krd-checkout-main .woocommerce form .form-row{margin:0 0 12px;}
.krd-checkout-main .woocommerce label{font-weight:700; color:#0b1b24; font-size:13px; margin-bottom:6px;}
.krd-checkout-main .woocommerce input.input-text,
.krd-checkout-main .woocommerce textarea,
.krd-checkout-main .woocommerce select{
  width:100%;
  background:#f7f9fc;
  border:1px solid #e3e9f1;
  border-radius:14px;
  padding:12px 12px;
  outline:none;
  box-shadow:none;
}
.krd-checkout-main .woocommerce input.input-text:focus,
.krd-checkout-main .woocommerce textarea:focus,
.krd-checkout-main .woocommerce select:focus{
  border-color: rgba(255,177,90,.65);
  background:#ffffff;
}

/* Order table / totals */
.krd-checkout-main .woocommerce-checkout-review-order-table{
  border:0 !important;
  border-collapse:separate;
  border-spacing:0 10px;
}
.krd-checkout-main .woocommerce-checkout-review-order-table thead{display:none;}
.krd-checkout-main .woocommerce-checkout-review-order-table tbody tr,
.krd-checkout-main .woocommerce-checkout-review-order-table tfoot tr{
  background:#f7f9fc;
}
.krd-checkout-main .woocommerce-checkout-review-order-table td,
.krd-checkout-main .woocommerce-checkout-review-order-table th{
  border:0 !important;
  padding:12px 12px !important;
}
.krd-checkout-main .woocommerce-checkout-review-order-table tbody tr td:first-child,
.krd-checkout-main .woocommerce-checkout-review-order-table tfoot tr th:first-child{
  border-top-left-radius:14px;
  border-bottom-left-radius:14px;
}
.krd-checkout-main .woocommerce-checkout-review-order-table tbody tr td:last-child,
.krd-checkout-main .woocommerce-checkout-review-order-table tfoot tr td:last-child{
  border-top-right-radius:14px;
  border-bottom-right-radius:14px;
}

/* Payment box */
.krd-checkout-main #payment{
  background:#f7f9fc !important;
  border:1px solid #e3e9f1 !important;
  border-radius:16px !important;
  padding:14px !important;
}
.krd-checkout-main #payment ul.payment_methods{border-bottom:0 !important; padding:0 !important;}
.krd-checkout-main #payment .payment_box{
  background:#ffffff !important;
  border:1px solid #e3e9f1 !important;
  border-radius:14px !important;
  padding:12px !important;
}

/* Place order button */
.krd-checkout-main #place_order{
  width:100%;
  border:0 !important;
  border-radius:16px !important;
  padding:14px 16px !important;
  font-weight:800 !important;
  letter-spacing:.2px;
  background:linear-gradient(135deg, #FFB15A, #FF5B5B) !important;
  box-shadow:0 14px 34px rgba(255, 91, 91, .22);
}
.krd-checkout-main #place_order:hover{
  filter:brightness(.98);
  transform:translateY(-1px);
}

/* Notices */
.krd-checkout-main .woocommerce-error,
.krd-checkout-main .woocommerce-message,
.krd-checkout-main .woocommerce-info{
  border-radius:16px;
}

/* =========================
   ZooCentur checkout/cart stabilization overrides
   Scope: cart and checkout templates only
   ========================= */

body.woocommerce-checkout .et_pb_section_0_tb_body{
  background:
    radial-gradient(900px 460px at 18% 0%, rgba(255,177,90,.22), rgba(0,0,0,0) 62%),
    radial-gradient(760px 420px at 82% 16%, rgba(36,158,186,.24), rgba(0,0,0,0) 58%),
    linear-gradient(180deg, #07121d 0%, #0f2531 100%) !important;
  padding-top: 150px !important;
  padding-bottom: 46px !important;
}

body.woocommerce-checkout .et_pb_section_0_tb_body .et_pb_row{
  max-width: 1200px;
  padding-top: 24px !important;
  padding-bottom: 0 !important;
}

body.woocommerce-checkout .krd-hero-title,
body.woocommerce-checkout .krd-hero-sub,
body.woocommerce-checkout .krd-hero-wrap{
  color: #f5f8ff !important;
}

body.woocommerce-checkout .krd-hero-sub{
  opacity: .92;
}

body.woocommerce-checkout .krd-hero-badge,
body.woocommerce-checkout .krd-step{
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.16);
  color: #f5f8ff;
}

body.woocommerce-checkout .krd-step-num{
  background: rgba(255,177,90,.18);
  border-color: rgba(255,177,90,.35);
  color: #ffb15a;
}

body.woocommerce-cart .zc-cart-col--left .zc-card{
  max-width: none !important;
  width: 100%;
  margin: 0;
}

body.woocommerce-cart table.shop_table.cart{
  display: table !important;
  width: 100% !important;
  table-layout: auto;
}

@media (min-width: 769px){
  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item{
    display: table-row !important;
    max-width: none !important;
    width: 100% !important;
  }

  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td{
    display: table-cell !important;
  }

  body.woocommerce-cart table.shop_table.cart .product-remove{
    width: 44px !important;
  }

  body.woocommerce-cart table.shop_table.cart .product-thumbnail{
    width: 84px !important;
  }

  body.woocommerce-cart table.shop_table.cart .product-name{
    width: auto !important;
    text-align: left !important;
  }

  body.woocommerce-cart table.shop_table.cart .product-price,
  body.woocommerce-cart table.shop_table.cart .product-quantity,
  body.woocommerce-cart table.shop_table.cart .product-subtotal{
    width: 110px !important;
  }
}

body.woocommerce-cart table.shop_table.cart .product-name a{
  padding-left: 0;
  text-align: left;
}

body.woocommerce-cart table.shop_table.cart tr td.actions{
  width: 100% !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button{
  max-width: none !important;
}

body.woocommerce-checkout .krd-support{
  display: none !important;
}

body.woocommerce-checkout .krd-checkout-head{
  align-items: center;
}

body.woocommerce-checkout .krd-checkout-main #customer_details,
body.woocommerce-checkout .krd-checkout-main #order_review{
  min-width: 0;
}

body.woocommerce-checkout .krd-checkout-main .woocommerce form .form-row{
  width: 100%;
}

body.woocommerce-checkout .krd-checkout-main .form-row-first,
body.woocommerce-checkout .krd-checkout-main .form-row-last{
  width: calc(50% - 8px);
}

body.woocommerce-checkout .krd-checkout-main .form-row-first{
  margin-right: 16px;
}

body.woocommerce-checkout .krd-checkout-main .woocommerce-billing-fields h3,
body.woocommerce-checkout .krd-checkout-main .woocommerce-shipping-fields h3,
body.woocommerce-checkout .krd-checkout-main .woocommerce-additional-fields h3{
  margin: 0 0 16px;
  color: #0b1b24;
  font-size: 22px;
  line-height: 1.2;
}

body.woocommerce-checkout .krd-checkout-main .optional{
  font-weight: 500;
  color: #66737f;
}

body.woocommerce-checkout .krd-checkout-main #billing_phone_field .optional{
  display: none;
}

body.woocommerce-checkout .krd-checkout-main .select2-container .select2-selection--single{
  height: 48px;
  border: 1px solid #e3e9f1;
  border-radius: 14px;
  background: #f7f9fc;
}

body.woocommerce-checkout .krd-checkout-main .select2-container--default .select2-selection--single .select2-selection__rendered{
  line-height: 48px;
  padding-left: 12px;
  color: #0b1b24;
}

body.woocommerce-checkout .krd-checkout-main .select2-container--default .select2-selection--single .select2-selection__arrow{
  height: 48px;
}

body.woocommerce-checkout .krd-checkout-main ul#shipping_method{
  margin: 0;
  padding: 0;
}

body.woocommerce-checkout .krd-checkout-main ul#shipping_method li,
body.woocommerce-checkout .krd-checkout-main ul.wc_payment_methods li{
  list-style: none;
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 1px solid #e3e9f1;
  border-radius: 14px;
  background: #fff;
}

body.woocommerce-checkout .krd-checkout-main ul#shipping_method label,
body.woocommerce-checkout .krd-checkout-main ul.wc_payment_methods label{
  margin: 0;
  cursor: pointer;
}

body.woocommerce-checkout .krd-checkout-main .woocommerce-terms-and-conditions-wrapper{
  margin-top: 12px;
  color: #44505a;
  font-size: 13px;
  line-height: 1.45;
}

body.woocommerce-checkout .krd-checkout-main .woocommerce-order{
  background: #fff;
  border: 1px solid #e7ecf2;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(10,28,55,.06);
}

@media (max-width: 980px){
  body.woocommerce-checkout .et_pb_section_0_tb_body{
    padding-top: 130px !important;
    padding-bottom: 36px !important;
  }

  body.woocommerce-checkout .krd-checkout-main .form-row-first,
  body.woocommerce-checkout .krd-checkout-main .form-row-last{
    width: 100%;
    margin-right: 0;
  }

  body.woocommerce-cart table.shop_table.cart{
    display: block !important;
  }
}

/* =========================
   ZooCentur checkout UI/UX polish
   Final scoped overrides for cart, checkout and order received
   ========================= */

body.woocommerce-cart,
body.woocommerce-checkout{
  --zc-ink: #10232f;
  --zc-muted: #5f6f7b;
  --zc-line: #e3edf3;
  --zc-soft: #f6f9fb;
  --zc-blue: #249eba;
  --zc-orange: #fb8500;
  --zc-orange-dark: #f44603;
  --zc-radius: 18px;
  --zc-shadow: 0 18px 46px rgba(16, 35, 47, .10);
}

body.woocommerce-cart .entry-content,
body.woocommerce-checkout .entry-content{
  overflow: visible;
}

body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce{
  color: var(--zc-ink);
}

body.woocommerce-cart .woocommerce-error,
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-checkout .woocommerce-error,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout .woocommerce-info{
  border: 1px solid var(--zc-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 35, 47, .06);
  color: var(--zc-ink);
}

body.woocommerce-cart .woocommerce-message a.button,
body.woocommerce-checkout .woocommerce-message a.button{
  border-radius: 999px !important;
  background: var(--zc-blue) !important;
  color: #fff !important;
}

body.woocommerce-cart table.shop_table.cart{
  border-collapse: separate !important;
  border-spacing: 0 14px !important;
}

body.woocommerce-cart table.shop_table.cart tbody tr.cart_item{
  border: 1px solid var(--zc-line) !important;
  border-radius: var(--zc-radius) !important;
  box-shadow: 0 12px 34px rgba(16,35,47,.08) !important;
}

body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td{
  padding: 14px 12px !important;
}

body.woocommerce-cart table.shop_table.cart .product-remove a.remove{
  border-radius: 999px;
  font-size: 24px;
  font-weight: 400;
}

body.woocommerce-cart table.shop_table.cart .product-thumbnail img{
  width: 76px;
  height: 76px;
  background: #fff;
}

body.woocommerce-cart table.shop_table.cart .product-name a{
  font-size: 15px !important;
  line-height: 1.3;
}

body.woocommerce-cart .cart_totals,
body.woocommerce-cart .zc-cart-totals{
  border-radius: 22px !important;
}

body.woocommerce-cart .cart_totals h2{
  font-size: 22px;
  margin-bottom: 14px;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-checkout #place_order,
body.woocommerce-checkout .zc-order-nextsteps__button{
  min-height: 54px;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--zc-orange), var(--zc-orange-dark)) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 16px 38px rgba(244,70,3,.22) !important;
  font-weight: 900 !important;
  text-align: center;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
body.woocommerce-checkout #place_order:hover,
body.woocommerce-checkout .zc-order-nextsteps__button:hover{
  filter: brightness(1.03);
  transform: translateY(-1px);
}

body.woocommerce-cart table.shop_table.cart tr td.actions{
  background: transparent !important;
}

body.woocommerce-cart table.shop_table.cart tr td.actions .coupon{
  border: 1px dashed rgba(36,158,186,.35);
  border-radius: 18px;
  background: #f8fbfd;
  padding: 12px;
}

body.woocommerce-cart table.shop_table.cart tr td.actions .coupon label{
  display: block;
  color: var(--zc-ink);
  margin-bottom: 8px;
}

body.woocommerce-cart table.shop_table.cart tr td.actions .coupon .input-text{
  height: 46px;
  border: 1px solid var(--zc-line);
  border-radius: 999px;
  padding: 0 16px;
  margin-bottom: 10px;
}

body.woocommerce-cart table.shop_table.cart tr td.actions .coupon .button{
  width: 100%;
  min-height: 46px;
  border-radius: 999px !important;
  background: var(--zc-blue) !important;
  color: #fff !important;
  border: 0 !important;
  margin: 0 !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received) form.woocommerce-checkout{
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 22px;
  align-items: start;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #customer_details,
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review{
  border: 1px solid var(--zc-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--zc-shadow);
  padding: 22px;
  min-width: 0;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #customer_details{
  grid-column: 1;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review{
  grid-column: 2;
  position: sticky;
  top: 118px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review:before{
  content: "Преглед и плащане";
  display: block;
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
  color: var(--zc-ink);
}

body.woocommerce-checkout:not(.woocommerce-order-received) #customer_details:before{
  content: "1. Данни за клиента";
  display: block;
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
  color: var(--zc-ink);
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review_heading{
  display: none !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #customer_details .col-1,
body.woocommerce-checkout:not(.woocommerce-order-received) #customer_details .col-2{
  float: none !important;
  width: 100% !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-shipping-fields,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-additional-fields,
body.woocommerce-checkout:not(.woocommerce-order-received) #billing_country_field.zc-field-hidden{
  display: none !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-billing-fields h3{
  position: relative;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(36,158,186,.10), rgba(251,133,0,.08));
  color: var(--zc-ink);
  font-size: 18px;
  font-weight: 900;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-billing-fields__field-wrapper{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce form .form-row{
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-billing-fields__field-wrapper .form-row-wide,
body.woocommerce-checkout:not(.woocommerce-order-received) #billing_address_1_field,
body.woocommerce-checkout:not(.woocommerce-order-received) #woo-billing-to-company_field,
body.woocommerce-checkout:not(.woocommerce-order-received) .woo-bg-company-info{
  grid-column: 1 / -1;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce form .form-row label{
  display: block;
  margin: 0 0 7px;
  color: var(--zc-ink);
  font-size: 13px;
  font-weight: 800;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce form .form-row input.input-text,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce form .form-row textarea,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce form .form-row select,
body.woocommerce-checkout:not(.woocommerce-order-received) .select2-container .select2-selection--single,
body.woocommerce-checkout:not(.woocommerce-order-received) .woo-bg--speedy-delivery input{
  min-height: 48px;
  border: 1px solid var(--zc-line) !important;
  border-radius: 14px !important;
  background: #f8fbfd !important;
  color: var(--zc-ink);
  box-shadow: none !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce form .form-row input.input-text,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce form .form-row textarea{
  padding: 12px 14px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .select2-container--default .select2-selection--single .select2-selection__rendered{
  line-height: 48px;
  padding-left: 14px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce form .form-row input:focus,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce form .form-row textarea:focus,
body.woocommerce-checkout:not(.woocommerce-order-received) .select2-container--focus .select2-selection--single{
  border-color: rgba(36,158,186,.65) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(36,158,186,.12) !important;
  outline: none !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received) table.woocommerce-checkout-review-order-table{
  border: 0 !important;
  margin-bottom: 16px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) table.woocommerce-checkout-review-order-table th,
body.woocommerce-checkout:not(.woocommerce-order-received) table.woocommerce-checkout-review-order-table td{
  border: 0 !important;
  padding: 12px !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received) table.woocommerce-checkout-review-order-table tr{
  border-bottom: 1px solid rgba(16,35,47,.08);
}

body.woocommerce-checkout:not(.woocommerce-order-received) table.woocommerce-checkout-review-order-table tfoot tr.order-total{
  background: linear-gradient(90deg, rgba(36,158,186,.10), rgba(251,133,0,.10));
  border-radius: 16px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) ul#shipping_method{
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

body.woocommerce-checkout:not(.woocommerce-order-received) ul#shipping_method li,
body.woocommerce-checkout:not(.woocommerce-order-received) #payment ul.payment_methods li{
  list-style: none;
  border: 1px solid var(--zc-line);
  border-radius: 16px;
  background: #f8fbfd;
  padding: 12px;
  margin: 0;
}

body.woocommerce-checkout:not(.woocommerce-order-received) ul#shipping_method input,
body.woocommerce-checkout:not(.woocommerce-order-received) #payment input[type="radio"]{
  margin-right: 8px;
  transform: translateY(1px);
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woo-bg--speedy-delivery{
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(36,158,186,.22);
  border-radius: 16px;
  background: #fff;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #payment{
  border: 1px solid var(--zc-line) !important;
  border-radius: 20px !important;
  background: #f8fbfd !important;
  padding: 16px !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #payment ul.payment_methods{
  padding: 0 !important;
  border: 0 !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #payment div.payment_box{
  margin: 10px 0 0 !important;
  border: 1px solid var(--zc-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-privacy-policy-text{
  color: var(--zc-muted);
  font-size: 13px;
  line-height: 1.45;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #place_order{
  width: 100%;
  margin-top: 12px;
  font-size: 17px !important;
}

body.woocommerce-checkout.woocommerce-order-received .woocommerce-order,
body.woocommerce-checkout .woocommerce-order{
  border: 1px solid var(--zc-line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--zc-shadow);
  padding: 24px;
}

body.woocommerce-checkout .woocommerce-order > p.woocommerce-thankyou-order-received{
  margin: 0 0 18px;
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(36,158,186,.12), rgba(251,133,0,.12));
  color: var(--zc-ink);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 900;
}

body.woocommerce-checkout .woocommerce-order-overview{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px !important;
  padding: 0 !important;
}

body.woocommerce-checkout .woocommerce-order-overview li{
  list-style: none;
  margin: 0 !important;
  padding: 14px !important;
  border: 1px solid var(--zc-line) !important;
  border-radius: 16px;
  background: #f8fbfd;
  color: var(--zc-muted);
  font-size: 12px;
}

body.woocommerce-checkout .woocommerce-order-overview li strong{
  display: block;
  margin-top: 4px;
  color: var(--zc-ink);
  font-size: 15px;
}

body.woocommerce-checkout .woocommerce-order-details,
body.woocommerce-checkout .woocommerce-customer-details,
body.woocommerce-checkout .zc-order-nextsteps{
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--zc-line);
  border-radius: 20px;
  background: #f8fbfd;
}

body.woocommerce-checkout .woocommerce-order-details h2,
body.woocommerce-checkout .woocommerce-customer-details h2,
body.woocommerce-checkout .zc-order-nextsteps h3{
  margin: 0 0 12px;
  color: var(--zc-ink);
  font-size: 21px;
  font-weight: 900;
}

body.woocommerce-checkout .woocommerce-order-details table.shop_table{
  border: 0 !important;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}

body.woocommerce-checkout .zc-order-nextsteps p{
  margin: 0 0 14px;
  color: var(--zc-muted);
}

body.woocommerce-checkout .zc-order-nextsteps__button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  padding: 0 22px;
  text-decoration: none;
}

body.woocommerce-order-received .woocommerce-customer-details .woocommerce-column--shipping-address{
  display: none;
}

body.woocommerce-order-received .woocommerce-customer-details .woocommerce-column--billing-address{
  float: none;
  width: 100%;
}

@media (max-width: 980px){
  body.woocommerce-cart table.shop_table.cart,
  body.woocommerce-cart table.shop_table.cart tbody{
    display: block !important;
    width: 100% !important;
  }

  body.woocommerce-cart table.shop_table.cart tr.cart_item{
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr);
    width: 100% !important;
    max-width: none !important;
    gap: 12px;
    align-items: start;
    padding: 14px !important;
    margin: 0 0 14px !important;
    border: 1px solid var(--zc-line) !important;
    border-radius: 18px;
    background: #fff;
  }

  body.woocommerce-cart table.shop_table.cart tr.cart_item td{
    display: block !important;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-remove{
    grid-column: 1 / -1;
    justify-self: end;
    order: -1;
  }

  body.woocommerce-cart table.shop_table.cart td.product-thumbnail{
    grid-row: span 4;
  }

  body.woocommerce-cart table.shop_table.cart td.product-thumbnail img{
    width: 92px !important;
    max-width: 92px !important;
    border-radius: 14px;
  }

  body.woocommerce-cart table.shop_table.cart td.product-name,
  body.woocommerce-cart table.shop_table.cart td.product-price,
  body.woocommerce-cart table.shop_table.cart td.product-quantity,
  body.woocommerce-cart table.shop_table.cart td.product-subtotal{
    grid-column: 2;
  }
}

@media (max-width: 980px){
  body.woocommerce-checkout:not(.woocommerce-order-received) form.woocommerce-checkout{
    display: block !important;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received) #customer_details,
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review{
    padding: 16px;
    border-radius: 20px;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review{
    position: static;
    margin-top: 16px;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-billing-fields__field-wrapper{
    grid-template-columns: 1fr;
  }

  body.woocommerce-checkout .woocommerce-order-overview{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px){
  body.woocommerce-cart table.shop_table.cart{
    display: block !important;
    width: 100% !important;
    border-spacing: 0 !important;
  }

  body.woocommerce-cart table.shop_table.cart tbody,
  body.woocommerce-cart table.shop_table.cart tfoot{
    display: block;
    width: 100%;
  }

  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item{
    position: relative;
    display: grid !important;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px 12px;
    width: 100% !important;
    max-width: none !important;
    padding: 14px !important;
    margin: 0 0 14px !important;
  }

  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td{
    display: block !important;
    width: auto !important;
    padding: 0 !important;
  }

  body.woocommerce-cart table.shop_table.cart .product-remove{
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px !important;
    z-index: 2;
  }

  body.woocommerce-cart table.shop_table.cart .product-thumbnail{
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 76px !important;
    height: auto;
  }

  body.woocommerce-cart table.shop_table.cart .product-name{
    grid-column: 2;
    padding-right: 34px !important;
    text-align: left !important;
  }

  body.woocommerce-cart table.shop_table.cart .product-price,
  body.woocommerce-cart table.shop_table.cart .product-quantity,
  body.woocommerce-cart table.shop_table.cart .product-subtotal{
    grid-column: 1 / -1;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px !important;
    border-top: 1px solid rgba(16,35,47,.08) !important;
    text-align: left !important;
  }

  body.woocommerce-cart table.shop_table.cart .product-price:before{
    content: "Цена";
    color: var(--zc-muted);
    font-weight: 800;
  }

  body.woocommerce-cart table.shop_table.cart .product-quantity:before{
    content: "Количество";
    color: var(--zc-muted);
    font-weight: 800;
  }

  body.woocommerce-cart table.shop_table.cart .product-subtotal:before{
    content: "Общо";
    color: var(--zc-muted);
    font-weight: 800;
  }

  body.woocommerce-cart table.shop_table.cart .quantity{
    justify-content: flex-end;
  }

  body.woocommerce-cart table.shop_table.cart input.qty{
    width: 76px !important;
    text-align: center;
  }

  body.woocommerce-cart table.shop_table.cart tr td.actions{
    display: block !important;
    width: 100% !important;
    padding: 6px 0 0 !important;
  }

  body.woocommerce-cart .cart_totals,
  body.woocommerce-cart .zc-cart-totals{
    padding: 16px !important;
  }

  body.woocommerce-checkout .woocommerce-order{
    padding: 16px;
    border-radius: 20px;
  }

  body.woocommerce-checkout .woocommerce-order > p.woocommerce-thankyou-order-received{
    font-size: 20px;
  }

  body.woocommerce-checkout .woocommerce-order-overview{
    grid-template-columns: 1fr;
  }

  body.woocommerce-checkout .zc-order-nextsteps__button{
    width: 100%;
  }
}

/* Delivery-first checkout refinement */
body.woocommerce-checkout:not(.woocommerce-order-received) #customer_details:before{
  display: none !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-billing-fields.zc-delivery-first-ready > h3,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-billing-fields.zc-delivery-first-ready > .woocommerce-billing-fields__field-wrapper{
  display: none !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .zc-delivery-first-shell{
  display: grid;
  gap: 16px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .zc-checkout-section{
  border: 1px solid rgba(16,35,47,.10);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff 0%, #f8fbfd 100%);
  padding: 18px;
  box-shadow: 0 10px 28px rgba(16,35,47,.06);
}

body.woocommerce-checkout:not(.woocommerce-order-received) .zc-checkout-section__head{
  margin: 0 0 14px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .zc-checkout-section__head h3{
  margin: 0;
  color: var(--zc-ink);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 900;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .zc-checkout-section__head p{
  margin: 6px 0 0;
  color: var(--zc-muted);
  font-size: 13px;
  line-height: 1.45;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .zc-checkout-section__body{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .zc-invoice-section .zc-checkout-section__body,
body.woocommerce-checkout:not(.woocommerce-order-received) .zc-delivery-section .zc-checkout-section__body,
body.woocommerce-checkout:not(.woocommerce-order-received) .zc-payment-section .zc-checkout-section__body{
  grid-template-columns: 1fr;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .zc-field-hidden,
body.woocommerce-checkout:not(.woocommerce-order-received) .zc-technical-field{
  display: none !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .zc-invoice-section .woo-bg-company-info{
  display: none !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .zc-delivery-first-shell.zc-invoice-open .zc-invoice-section .woo-bg-company-info{
  display: block !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .zc-invoice-section #woo-billing-to-company_field{
  padding: 12px !important;
  border: 1px solid rgba(36,158,186,.22);
  border-radius: 16px;
  background: #fff;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .zc-invoice-section #woo-billing-to-company_field label.checkbox{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .zc-invoice-section #woo-billing-to-company{
  width: 18px;
  height: 18px;
  accent-color: var(--zc-blue);
}

body.woocommerce-checkout:not(.woocommerce-order-received) .zc-delivery-method-table,
body.woocommerce-checkout:not(.woocommerce-order-received) .zc-delivery-method-table tbody,
body.woocommerce-checkout:not(.woocommerce-order-received) .zc-delivery-method-table tr,
body.woocommerce-checkout:not(.woocommerce-order-received) .zc-delivery-method-table th,
body.woocommerce-checkout:not(.woocommerce-order-received) .zc-delivery-method-table td{
  display: block;
  width: 100%;
  border: 0 !important;
  padding: 0 !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .zc-delivery-method-table{
  margin: 0 !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .zc-delivery-method-table .woo-bg--shipping-title th{
  margin: 0 0 10px;
  color: var(--zc-ink);
  font-size: 15px;
  font-weight: 900;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .zc-delivery-method-table ul#shipping_method{
  display: grid;
  gap: 12px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .zc-delivery-method-table ul#shipping_method li{
  position: relative;
  border: 1px solid rgba(36,158,186,.25);
  border-radius: 18px;
  background: #fff;
  padding: 14px !important;
  box-shadow: 0 8px 24px rgba(16,35,47,.05);
}

body.woocommerce-checkout:not(.woocommerce-order-received) .zc-delivery-method-table ul#shipping_method input[type="radio"]{
  width: 18px;
  height: 18px;
  accent-color: var(--zc-orange);
}

body.woocommerce-checkout:not(.woocommerce-order-received) .zc-delivery-method-table ul#shipping_method label{
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--zc-ink);
  font-size: 15px;
  font-weight: 900;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .zc-delivery-helper{
  flex-basis: 100%;
  padding-left: 30px;
  color: var(--zc-muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .zc-delivery-method-table .woo-bg--speedy-delivery{
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(36,158,186,.22);
  border-radius: 16px;
  background: #f8fbfd;
  overflow: visible;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .zc-delivery-method-table .woo-bg--speedy-delivery label{
  color: var(--zc-ink);
  font-size: 13px;
  font-weight: 800;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .zc-delivery-method-table .woo-bg--speedy-delivery input,
body.woocommerce-checkout:not(.woocommerce-order-received) .zc-delivery-method-table .woo-bg--speedy-delivery select,
body.woocommerce-checkout:not(.woocommerce-order-received) .zc-delivery-method-table .woo-bg--speedy-delivery .select2-container{
  width: 100% !important;
  max-width: 100%;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .select2-dropdown{
  z-index: 999999;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .zc-payment-section #payment{
  margin: 0 !important;
  border: 1px solid rgba(36,158,186,.22) !important;
  background: #fff !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .zc-payment-section #payment ul.payment_methods li{
  border-color: rgba(36,158,186,.25);
  background: #f8fbfd;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .zc-payment-section #place_order{
  min-height: 54px;
  margin-top: 16px;
  border-radius: 999px !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review:before{
  content: "4. Доставка, плащане и преглед";
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.woocommerce-checkout-review-order-table{
  margin-bottom: 0;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.woocommerce-checkout-review-order-table .cart_item td{
  vertical-align: top;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.woocommerce-checkout-review-order-table tfoot tr.shipping{
  display: table-row !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review tr.woo-bg--shipping-title th{
  padding-top: 18px !important;
  color: var(--zc-ink);
  font-size: 16px;
  font-weight: 900;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review tr.woo-bg--shipping-methods td{
  padding-top: 0 !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review ul#shipping_method{
  display: grid;
  gap: 12px;
  margin: 0 !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review ul#shipping_method li{
  position: relative;
  margin: 0 !important;
  padding: 14px !important;
  border: 1px solid rgba(36,158,186,.24);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16,35,47,.05);
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review ul#shipping_method input[type="radio"]{
  width: 18px;
  height: 18px;
  margin: 2px 10px 0 0 !important;
  accent-color: var(--zc-orange);
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review ul#shipping_method label{
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 34px);
  margin: 0 !important;
  color: var(--zc-ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .zc-delivery-helper{
  flex-basis: 100%;
  padding-left: 0;
  color: var(--zc-muted);
  font-size: 13px;
  font-weight: 600;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .woo-bg-additional-fields:not(:empty){
  margin-top: 12px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .woo-bg--speedy-delivery{
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(36,158,186,.18);
  border-radius: 16px;
  background: #f8fbfd;
  overflow: visible;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .woo-bg-multiselect,
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .woo-bg-multiselect .multiselect__tags,
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .woo-bg-multiselect--additional-field{
  width: 100% !important;
  max-width: 100%;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .woo-bg-multiselect .multiselect__tags,
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .woo-bg-multiselect--additional-field{
  min-height: 46px;
  border: 1px solid rgba(16,35,47,.14);
  border-radius: 14px;
  background: #fff;
  color: var(--zc-ink);
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(16,35,47,.04);
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .woo-bg-multiselect .multiselect__single{
  margin: 0;
  padding: 8px 34px 8px 0;
  color: var(--zc-ink);
  font-size: 15px;
  line-height: 1.4;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .woo-bg-multiselect .multiselect__content-wrapper{
  z-index: 999999;
  border-color: rgba(36,158,186,.22);
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(16,35,47,.16);
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .woo-bg-multiselect--additional-field{
  padding: 10px 12px !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce form .form-row.woocommerce-invalid input.input-text,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce form .form-row.woocommerce-invalid select,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce form .form-row.woocommerce-invalid .select2-selection{
  border-color: #d63638 !important;
  box-shadow: 0 0 0 4px rgba(214,54,56,.10) !important;
}

body.woocommerce-cart table.shop_table.cart{
  max-width: 100%;
}

body.woocommerce-cart .cart-collaterals,
body.woocommerce-cart .cart_totals{
  min-width: 0;
}

body.woocommerce-cart .cart_totals ul#shipping_method{
  display: grid;
  gap: 10px;
  margin: 0 !important;
}

body.woocommerce-cart .cart_totals ul#shipping_method li{
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin: 0 !important;
  padding: 12px !important;
  border: 1px solid rgba(36,158,186,.20);
  border-radius: 16px;
  background: #fff;
  text-align: left;
}

body.woocommerce-cart .cart_totals ul#shipping_method input[type="radio"]{
  width: 18px;
  height: 18px;
  margin-top: 2px !important;
  accent-color: var(--zc-orange);
}

body.woocommerce-cart .cart_totals ul#shipping_method label{
  display: flex !important;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: baseline;
  min-width: 0;
  margin: 0 !important;
  color: var(--zc-ink);
  font-weight: 800;
  line-height: 1.35;
}

body.woocommerce-cart .cart_totals ul#shipping_method .zc-delivery-helper{
  display: block;
  flex-basis: 100%;
  margin-top: 2px;
  color: var(--zc-muted);
  font-size: 13px;
  font-weight: 600;
}

body.woocommerce-cart .cart_totals .woocommerce-shipping-destination{
  margin: 10px 0 0;
  color: var(--zc-muted);
  line-height: 1.45;
  text-align: left;
}

body.woocommerce-cart .xoo-wsc-basket,
body.woocommerce-checkout .xoo-wsc-basket{
  display: none !important;
}

@media (max-width: 980px){
  body.woocommerce-checkout:not(.woocommerce-order-received) .zc-checkout-section{
    padding: 16px;
    border-radius: 18px;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received) .zc-checkout-section__body{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px){
  body.woocommerce-checkout:not(.woocommerce-order-received) #customer_details,
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review{
    padding: 14px !important;
    border-radius: 18px;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received) .zc-checkout-section{
    padding: 14px;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received) .zc-checkout-section__head h3{
    font-size: 18px;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received) .zc-delivery-method-table ul#shipping_method label{
    font-size: 14px;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received) .zc-delivery-helper{
    padding-left: 0;
  }

  body.woocommerce-cart table.shop_table.cart td.product-name:before{
    content: "Продукт:";
    display: block;
    float: none !important;
    margin-bottom: 4px;
    color: var(--zc-muted);
    font-weight: 800;
  }

  body.woocommerce-cart table.shop_table.cart .product-name a{
    display: block;
    line-height: 1.35;
  }

  body.woocommerce-cart .cart_totals tr.shipping th,
  body.woocommerce-cart .cart_totals tr.shipping td{
    display: block;
    width: 100% !important;
    text-align: left !important;
  }

  body.woocommerce-cart .cart_totals tr.shipping td:before{
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 0 0 8px !important;
    color: var(--zc-ink);
    font-weight: 900;
  }

  body.woocommerce-cart .cart_totals ul#shipping_method li{
    grid-template-columns: 20px minmax(0, 1fr);
    padding: 12px !important;
  }

  body.woocommerce-cart .cart_totals ul#shipping_method label{
    font-size: 14px;
  }
}

@media (max-width: 640px){
  body.woocommerce-cart table.shop_table_responsive tr td.product-name:before,
  body.woocommerce-cart table.shop_table.cart td.product-name:before{
    content: "Продукт: ";
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 0 0 4px !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-name a{
    display: block !important;
    clear: both;
  }

  body.woocommerce-cart table.shop_table_responsive .cart_totals tr.shipping td:before,
  body.woocommerce-cart .cart_totals table.shop_table_responsive tr.shipping td:before,
  body.woocommerce-cart .cart_totals tr.shipping td:before{
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 0 0 8px !important;
    text-align: left !important;
  }
}

/* Cart header image: scoped final override using optimized theme asset. */
body.woocommerce-cart #zc-cart-hero{
  background-image:
    linear-gradient(90deg, rgba(255, 251, 244, .82) 0%, rgba(255, 255, 255, .62) 38%, rgba(255, 255, 255, .16) 72%),
    url("../assets/images/cart-header-bg.webp") !important;
  background-size: cover !important;
  background-position: center 47% !important;
  background-repeat: no-repeat !important;
}

body.woocommerce-cart #zc-cart-hero:before{
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, .10) 54%, rgba(255, 255, 255, .02) 100%);
  filter: none;
  transform: none;
  opacity: 1;
}

body.woocommerce-cart #zc-cart-hero:after{
  opacity: .10;
}

body.woocommerce-cart #zc-cart-hero .zc-cart-hero__text{
  width: min(720px, 100%);
  max-width: 720px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, .64);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .84), rgba(255, 248, 235, .66));
  box-shadow: 0 18px 46px rgba(16, 35, 47, .11);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.woocommerce-cart #zc-cart-hero .cart-main-title,
body.woocommerce-cart #zc-cart-hero .zc-cart-hero__sub{
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}

@media (max-width: 767px){
  body.woocommerce-cart #zc-cart-hero{
    background-position: 58% center !important;
  }

body.woocommerce-cart #zc-cart-hero .zc-cart-hero__text{
    padding: 18px;
    border-radius: 20px;
  }
}

/* Cart professional UI polish: final scoped overrides for the cart form, totals and mobile cards. */
body.woocommerce-cart{
  --zc-cart-ink: #10232f;
  --zc-cart-muted: #61717e;
  --zc-cart-line: rgba(16, 35, 47, .10);
  --zc-cart-soft: #f6f8fb;
  --zc-cart-card: #ffffff;
  --zc-cart-blue: #249eba;
  --zc-cart-orange: #fb8500;
  --zc-cart-red: #f44603;
  --zc-cart-radius: 22px;
  --zc-cart-shadow: 0 16px 44px rgba(16, 35, 47, .10);
}

body.woocommerce-cart #zc-cart-body{
  padding-top: clamp(28px, 4vw, 42px);
  padding-bottom: clamp(54px, 7vw, 84px);
  background: var(--zc-cart-soft);
}

body.woocommerce-cart #zc-cart-body > .et_pb_row,
body.woocommerce-cart #zc-cart-body .et_pb_row{
  width: min(1284px, calc(100% - 48px)) !important;
  max-width: 1284px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 2.05fr) minmax(340px, .95fr);
  gap: clamp(22px, 3vw, 38px);
  align-items: start;
}

body.woocommerce-cart #zc-cart-body .et_pb_column{
  float: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  margin-right: 0 !important;
}

body.woocommerce-cart .zc-cart-products.zc-card,
body.woocommerce-cart .zc-cart-totals.zc-card,
body.woocommerce-cart .zc-cart-trust.zc-card{
  border: 1px solid var(--zc-cart-line) !important;
  border-radius: var(--zc-cart-radius) !important;
  background: var(--zc-cart-card) !important;
  box-shadow: var(--zc-cart-shadow) !important;
}

body.woocommerce-cart .zc-cart-products.zc-card:before,
body.woocommerce-cart .zc-cart-totals.zc-card:before,
body.woocommerce-cart .zc-cart-trust.zc-card:before{
  display: none !important;
}

body.woocommerce-cart .zc-cart-products.zc-card{
  padding: 12px !important;
  overflow: visible !important;
}

body.woocommerce-cart table.shop_table.cart,
body.woocommerce-cart table.shop_table.cart tbody,
body.woocommerce-cart table.shop_table.cart tfoot{
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  border: 0 !important;
  border-spacing: 0 !important;
}

body.woocommerce-cart table.shop_table.cart tbody tr.cart_item{
  position: relative;
  display: grid !important;
  grid-template-columns: 42px 82px minmax(0, 1fr) minmax(92px, .36fr) 96px minmax(112px, .42fr);
  gap: 12px 14px;
  align-items: center;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 0 12px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(36, 158, 186, .16) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 10px 26px rgba(16, 35, 47, .07) !important;
}

body.woocommerce-cart table.shop_table.cart tbody tr.cart_item:before{
  display: none !important;
}

body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td{
  display: block !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  text-align: left !important;
}

body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-remove{
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  justify-self: center;
}

body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-thumbnail{
  grid-column: 2;
  grid-row: 1;
}

body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-name{
  grid-column: 3;
  grid-row: 1;
  display: block !important;
  margin: 0 !important;
}

body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-price{
  grid-column: 4;
  grid-row: 1;
  text-align: right !important;
}

body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-quantity{
  grid-column: 5;
  grid-row: 1;
  justify-self: center;
}

body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-subtotal{
  grid-column: 6;
  grid-row: 1;
  text-align: right !important;
}

body.woocommerce-cart table.shop_table.cart .product-remove a.remove{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  height: 36px !important;
  border-radius: 999px !important;
  background: rgba(244, 70, 3, .09) !important;
  color: #f44603 !important;
  font-size: 22px !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

body.woocommerce-cart table.shop_table.cart .product-remove a.remove:hover{
  background: rgba(244, 70, 3, .16) !important;
  transform: translateY(-1px);
}

body.woocommerce-cart table.shop_table.cart .product-thumbnail img{
  width: 76px !important;
  height: 76px !important;
  max-width: 76px !important;
  object-fit: contain;
  border: 1px solid rgba(16, 35, 47, .08);
  border-radius: 14px !important;
  background: #fff;
}

body.woocommerce-cart table.shop_table.cart .product-name a{
  display: block !important;
  color: var(--zc-cart-ink) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.28 !important;
  text-align: left !important;
  overflow-wrap: break-word;
  word-break: normal;
}

body.woocommerce-cart table.shop_table.cart .product-price,
body.woocommerce-cart table.shop_table.cart .product-subtotal{
  color: var(--zc-cart-ink);
  font-weight: 900;
  line-height: 1.25;
}

body.woocommerce-cart table.shop_table.cart .product-price .woocommerce-Price-amount,
body.woocommerce-cart table.shop_table.cart .product-subtotal .woocommerce-Price-amount{
  display: inline-block;
  white-space: normal;
}

body.woocommerce-cart table.shop_table.cart .product-price bdi,
body.woocommerce-cart table.shop_table.cart .product-subtotal bdi{
  white-space: nowrap;
}

body.woocommerce-cart table.shop_table.cart .product-price .krd-price-bgn,
body.woocommerce-cart table.shop_table.cart .product-subtotal .krd-price-bgn{
  display: block;
  margin-top: 3px;
  color: var(--zc-cart-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

body.woocommerce-cart table.shop_table.cart .product-price small,
body.woocommerce-cart table.shop_table.cart .product-subtotal small{
  color: var(--zc-cart-muted);
  font-weight: 700;
}

body.woocommerce-cart table.shop_table.cart .quantity{
  justify-content: center;
}

body.woocommerce-cart table.shop_table.cart input.qty{
  width: 78px !important;
  min-height: 44px;
  border: 1px solid rgba(16, 35, 47, .12) !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: var(--zc-cart-ink) !important;
  font-weight: 900;
  text-align: center;
}

body.woocommerce-cart table.shop_table.cart tr:has(> td.actions){
  display: block !important;
  width: 100% !important;
}

body.woocommerce-cart table.shop_table.cart tr td.actions{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
  gap: 14px;
  align-items: end;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 2px 0 0 !important;
  padding: 4px 0 0 !important;
  background: transparent !important;
  border: 0 !important;
}

body.woocommerce-cart table.shop_table.cart tr td.actions .coupon{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 14px !important;
  border: 1px dashed rgba(36, 158, 186, .34) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #f8fbfd, #fffaf2) !important;
}

body.woocommerce-cart table.shop_table.cart tr td.actions .coupon label{
  grid-column: 1 / -1;
  margin: 0 !important;
  color: var(--zc-cart-ink);
  font-weight: 900;
}

body.woocommerce-cart table.shop_table.cart tr td.actions .coupon .input-text{
  width: 100% !important;
  height: 50px !important;
  min-height: 50px;
  margin: 0 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(16, 35, 47, .12) !important;
  background: #fff !important;
  padding: 0 18px !important;
}

body.woocommerce-cart table.shop_table.cart tr td.actions .coupon .button,
body.woocommerce-cart table.shop_table.cart tr td.actions button[name="update_cart"]{
  min-height: 50px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  font-weight: 900 !important;
  white-space: nowrap;
}

body.woocommerce-cart table.shop_table.cart tr td.actions .coupon .button{
  min-width: 170px;
  background: var(--zc-cart-blue) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 12px 28px rgba(36, 158, 186, .18) !important;
}

body.woocommerce-cart table.shop_table.cart tr td.actions button[name="update_cart"]{
  width: 100% !important;
  background: #fff !important;
  color: var(--zc-cart-blue) !important;
  border: 1px solid rgba(36, 158, 186, .28) !important;
  box-shadow: 0 10px 24px rgba(16, 35, 47, .06) !important;
}

body.woocommerce-cart table.shop_table.cart tr td.actions button[name="update_cart"]:disabled{
  color: #94a4af !important;
  border-color: rgba(16, 35, 47, .10) !important;
  background: #eef4f7 !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

body.woocommerce-cart .zc-cart-totals.zc-card{
  padding: 18px !important;
}

body.woocommerce-cart .zc-cart-totals .cart_totals{
  width: 100% !important;
  float: none !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

body.woocommerce-cart .cart_totals h2{
  margin: 0 0 18px !important;
  color: var(--zc-cart-ink);
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 900;
  line-height: 1.2;
}

body.woocommerce-cart .cart_totals table.shop_table{
  width: 100% !important;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

body.woocommerce-cart .cart_totals table.shop_table tr{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 0 !important;
  border-bottom: 1px solid rgba(16, 35, 47, .09) !important;
}

body.woocommerce-cart .cart_totals table.shop_table tr.shipping{
  display: block !important;
}

body.woocommerce-cart .cart_totals table.shop_table th,
body.woocommerce-cart .cart_totals table.shop_table td{
  display: block !important;
  width: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  text-align: left !important;
  color: var(--zc-cart-ink);
}

body.woocommerce-cart .cart_totals table.shop_table td{
  text-align: right !important;
  font-weight: 900;
}

body.woocommerce-cart .cart_totals table.shop_table_responsive tr td:before,
body.woocommerce-cart .cart_totals table.shop_table tr td:before{
  content: none !important;
  display: none !important;
}

body.woocommerce-cart .cart_totals table.shop_table tr.shipping td{
  margin-top: 10px;
  text-align: left !important;
}

body.woocommerce-cart .cart_totals ul#shipping_method{
  display: grid;
  gap: 10px;
}

body.woocommerce-cart .cart_totals ul#shipping_method li{
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 12px !important;
  border: 1px solid rgba(36, 158, 186, .20) !important;
  border-radius: 16px !important;
  background: #f8fbfd !important;
}

body.woocommerce-cart .cart_totals ul#shipping_method li:has(input:checked){
  border-color: rgba(251, 133, 0, .45) !important;
  background: linear-gradient(135deg, rgba(255, 250, 242, .98), rgba(255, 255, 255, .98)) !important;
}

body.woocommerce-cart .cart_totals .order-total{
  margin-top: 2px;
  padding-top: 16px !important;
  border-bottom: 0 !important;
}

body.woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td{
  font-size: 17px;
}

body.woocommerce-cart .cart_totals .order-total td{
  padding: 10px 12px !important;
  border: 1px solid rgba(36, 158, 186, .20) !important;
  border-radius: 14px !important;
  background: #f7fcff !important;
}

body.woocommerce-cart .wc-proceed-to-checkout{
  padding: 18px 0 0 !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button{
  width: 100% !important;
  min-height: 56px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

body.woocommerce-cart .zc-cart-trust.zc-card{
  padding: 20px !important;
  margin-top: 20px !important;
}

body.woocommerce-cart .zc-cart-trust h1,
body.woocommerce-cart .zc-cart-trust h2,
body.woocommerce-cart .zc-cart-trust h3,
body.woocommerce-cart .zc-cart-trust h4{
  margin-top: 0;
  color: var(--zc-cart-ink);
  font-weight: 900;
}

body.woocommerce-cart .zc-cart-trust ul{
  margin-bottom: 0;
  color: var(--zc-cart-muted);
  line-height: 1.65;
}

@media (max-width: 1180px){
  body.woocommerce-cart #zc-cart-body > .et_pb_row,
  body.woocommerce-cart #zc-cart-body .et_pb_row{
    grid-template-columns: 1fr;
    width: min(960px, calc(100% - 40px)) !important;
  }

  body.woocommerce-cart .zc-cart-totals.zc-card,
  body.woocommerce-cart .zc-cart-trust.zc-card{
    max-width: none !important;
  }
}

@media (max-width: 860px){
  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item{
    grid-template-columns: 42px 76px minmax(0, 1fr) 88px;
    grid-template-areas:
      "remove image name subtotal"
      "remove image price quantity";
  }

  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-remove{ grid-area: remove; }
  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-thumbnail{ grid-area: image; }
  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-name{ grid-area: name; }
  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-price{ grid-area: price; text-align: left !important; }
  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-quantity{ grid-area: quantity; justify-self: end; }
  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-subtotal{ grid-area: subtotal; }
}

@media (max-width: 640px){
  body.woocommerce-cart #zc-cart-body > .et_pb_row,
  body.woocommerce-cart #zc-cart-body .et_pb_row{
    width: calc(100% - 24px) !important;
    gap: 18px;
  }

  body.woocommerce-cart .zc-cart-products.zc-card,
  body.woocommerce-cart .zc-cart-totals.zc-card,
  body.woocommerce-cart .zc-cart-trust.zc-card{
    padding: 12px !important;
    border-radius: 18px !important;
  }

  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item{
    grid-template-columns: 74px minmax(0, 1fr) 36px;
    grid-template-areas:
      "image name remove"
      "image price price"
      "quantity quantity quantity"
      "subtotal subtotal subtotal";
    gap: 10px 12px;
    padding: 12px !important;
    border-radius: 16px !important;
  }

  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-remove{
    justify-self: end;
    align-self: start;
  }

  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-remove:before,
  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-thumbnail:before{
    content: none !important;
    display: none !important;
  }

  body.woocommerce-cart table.shop_table.cart .product-remove a.remove{
    width: 32px !important;
    height: 32px !important;
  }

  body.woocommerce-cart table.shop_table.cart .product-thumbnail img{
    width: 72px !important;
    height: 72px !important;
    max-width: 72px !important;
  }

  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-price,
  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-quantity,
  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-subtotal{
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100% !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(16, 35, 47, .08) !important;
    text-align: right !important;
  }

  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-price:before{
    content: "Цена";
    color: var(--zc-cart-muted);
    font-weight: 900;
  }

  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-quantity:before{
    content: "Количество";
    color: var(--zc-cart-muted);
    font-weight: 900;
  }

  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-subtotal:before{
    content: "Общо";
    color: var(--zc-cart-muted);
    font-weight: 900;
  }

  body.woocommerce-cart table.shop_table.cart tr td.actions{
    grid-template-columns: 1fr;
  }

  body.woocommerce-cart table.shop_table.cart tr td.actions .coupon{
    grid-template-columns: 1fr;
    padding: 12px !important;
  }

  body.woocommerce-cart table.shop_table.cart tr td.actions .coupon .button{
    width: 100% !important;
    min-width: 0;
  }

  body.woocommerce-cart .cart_totals table.shop_table tr{
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.woocommerce-cart .cart_totals table.shop_table td{
    text-align: left !important;
  }
}

/* Cart validation polish: keep product media inside cards and simplify cart delivery. */
body.woocommerce-cart table.shop_table.cart tr.cart_item td.product-thumbnail img,
body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-thumbnail img,
body.woocommerce-cart .woocommerce-cart-form table.shop_table.cart tr.cart_item td.product-thumbnail img{
  display: block !important;
  width: 76px !important;
  max-width: 76px !important;
  min-width: 0 !important;
  height: 76px !important;
  max-height: 76px !important;
  object-fit: contain !important;
  box-sizing: border-box !important;
}

body.woocommerce-cart table.shop_table.cart tr.cart_item td.product-thumbnail,
body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-thumbnail{
  min-width: 0 !important;
  overflow: hidden !important;
}

body.woocommerce-cart table.shop_table.cart tr.cart_item td.product-name,
body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-name{
  min-width: 0 !important;
}

body.woocommerce-cart table.shop_table.cart tr td.actions{
  box-sizing: border-box !important;
  padding: 4px 12px 0 !important;
}

body.woocommerce-cart table.shop_table.cart tr td.actions button[name="update_cart"]{
  width: 100% !important;
  max-width: 220px !important;
  min-width: 0 !important;
  justify-self: end !important;
  box-sizing: border-box !important;
}

body.woocommerce-cart .cart_totals table.shop_table tr.shipping{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 8px !important;
}

body.woocommerce-cart .cart_totals table.shop_table tr.shipping th,
body.woocommerce-cart .cart_totals table.shop_table tr.shipping td{
  width: 100% !important;
  text-align: left !important;
}

body.woocommerce-cart .cart_totals table.shop_table tr.shipping td{
  margin-top: 0 !important;
}

body.woocommerce-cart .cart_totals table.shop_table tr.shipping td > *{
  display: none !important;
}

body.woocommerce-cart .cart_totals table.shop_table tr.shipping td:after{
  content: "Доставката се изчислява на следващата стъпка.";
  display: block;
  padding: 12px 14px;
  border: 1px solid rgba(36, 158, 186, .20);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(36, 158, 186, .08), rgba(255, 250, 242, .92));
  color: var(--zc-cart-muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

@media (max-width: 860px){
  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item{
    grid-template-columns: 42px 76px minmax(0, 1fr);
    grid-template-areas:
      "remove image name"
      "remove image price"
      "quantity quantity quantity"
      "subtotal subtotal subtotal";
    gap: 10px 14px;
  }

  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-quantity{
    justify-self: stretch !important;
  }

  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-subtotal{
    text-align: left !important;
  }
}

@media (max-width: 640px){
  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item{
    grid-template-columns: 72px minmax(0, 1fr) !important;
    grid-template-areas:
      "image name"
      "price price"
      "quantity quantity"
      "subtotal subtotal" !important;
    padding: 14px !important;
    position: relative !important;
  }

  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-remove{
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 2;
  }

  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-name{
    padding-right: 40px !important;
  }

  body.woocommerce-cart table.shop_table.cart tr.cart_item td.product-thumbnail img,
  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-thumbnail img,
  body.woocommerce-cart .woocommerce-cart-form table.shop_table.cart tr.cart_item td.product-thumbnail img{
    width: 72px !important;
    max-width: 72px !important;
    height: 72px !important;
    max-height: 72px !important;
  }

  body.woocommerce-cart table.shop_table.cart tr td.actions{
    padding: 4px 0 0 !important;
  }

  body.woocommerce-cart table.shop_table.cart tr td.actions button[name="update_cart"]{
    max-width: none !important;
    justify-self: stretch !important;
  }
}

@media (max-width: 380px){
  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item{
    grid-template-columns: 66px minmax(0, 1fr) !important;
    gap: 10px;
  }

  body.woocommerce-cart table.shop_table.cart tr.cart_item td.product-thumbnail img,
  body.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-thumbnail img,
  body.woocommerce-cart .woocommerce-cart-form table.shop_table.cart tr.cart_item td.product-thumbnail img{
    width: 66px !important;
    max-width: 66px !important;
    height: 66px !important;
    max-height: 66px !important;
  }
}


/* Keep the cart total label readable when the VAT breakdown wraps. */
body.woocommerce-cart .cart_totals table.shop_table tr.order-total {
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
}

body.woocommerce-cart .cart_totals table.shop_table tr.order-total > th {
  white-space: nowrap;
}

body.woocommerce-cart .cart_totals table.shop_table tr.order-total > td {
  display: block !important;
  min-width: 0;
}

body.woocommerce-cart .cart_totals table.shop_table tr.order-total .includes_tax {
  display: block;
  margin-top: 6px;
  font-weight: 400;
  line-height: 1.5;
}

body.woocommerce-cart .cart_totals table.shop_table tr.order-total .woocommerce-Price-amount {
  display: inline-block;
  white-space: nowrap;
}

@media (max-width: 640px) {
  body.woocommerce-cart .cart_totals table.shop_table tr.order-total {
    grid-template-columns: minmax(0, 1fr);
  }

  body.woocommerce-cart .cart_totals table.shop_table tr.order-total > td {
    text-align: left !important;
  }
}


/* Cart refresh repair: keep WooCommerce notices readable on the existing white cards. */
body.woocommerce-cart .zc-cart-notices .woocommerce-message,
body.woocommerce-cart .zc-cart-notices .woocommerce-info,
body.woocommerce-cart .zc-cart-notices .woocommerce-error {
  color: #10232f !important;
}
body.woocommerce-cart .zc-cart-notices a.restore-item {
  color: #08778b !important;
  text-decoration: underline;
}
/* End cart refresh repair. */
