/* MK Voucher Guidance 1.1.1 */
body.mk-v7:is(.woocommerce-cart,.woocommerce-checkout) .wc-block-components-totals-coupon__input .wc-block-components-text-input{
  position:relative!important;
}
body.mk-v7:is(.woocommerce-cart,.woocommerce-checkout) .wc-block-components-totals-coupon__input input[type="text"]{
  min-height:54px!important;
  padding:20px 12px 7px!important;
  line-height:1.25!important;
}
body.mk-v7:is(.woocommerce-cart,.woocommerce-checkout) .wc-block-components-totals-coupon__input label{
  position:absolute!important;
  top:7px!important;
  left:10px!important;
  right:auto!important;
  bottom:auto!important;
  z-index:2!important;
  margin:0!important;
  padding:0 4px!important;
  transform:none!important;
  transform-origin:left top!important;
  background:#fff!important;
  color:#6f7b6c!important;
  font-size:10px!important;
  font-weight:650!important;
  line-height:1.1!important;
  pointer-events:none!important;
}
body.mk-v7:is(.woocommerce-cart,.woocommerce-checkout) .wc-block-components-totals-coupon__form button{
  min-height:54px!important;
}
body.mk-v7:is(.woocommerce-cart,.woocommerce-checkout) .wc-block-components-totals-coupon .wc-block-components-validation-error{
  margin:8px 0 0!important;
  padding:9px 10px!important;
  border:1px solid #f0c9c5!important;
  border-radius:9px!important;
  background:#fff7f5!important;
  color:#9b3b34!important;
  font-size:12px!important;
  line-height:1.5!important;
}
body.mk-v7:is(.woocommerce-cart,.woocommerce-checkout) .wc-block-components-totals-coupon .wc-block-components-validation-error p{
  margin:0!important;
  color:inherit!important;
  font-size:inherit!important;
  line-height:inherit!important;
}
body.mk-v7:is(.woocommerce-cart,.woocommerce-checkout) .wc-block-components-totals-coupon.mk-voucher-has-error .wc-block-components-totals-coupon__input input[type="text"]{
  border-color:#ce6a62!important;
  box-shadow:0 0 0 2px rgba(164,59,53,.07)!important;
}
body.mk-v7:is(.woocommerce-cart,.woocommerce-checkout) .wc-block-components-totals-coupon.mk-voucher-has-error .wc-block-components-totals-coupon__input label{
  color:#9b3b34!important;
}

.mk-voucher-guide{
  margin:10px 0 2px!important;
  padding:14px!important;
  border:1px solid #e4cfc8;
  border-radius:12px;
  background:#fffaf7;
  color:#29362c;
  box-sizing:border-box;
}
.mk-voucher-guide__head{
  display:grid;
  grid-template-columns:28px minmax(0,1fr);
  gap:10px;
  align-items:start;
}
.mk-voucher-guide__icon{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:50%;
  background:#f6e5df;
  color:#9b3b34;
  font-size:16px;
  font-weight:850;
  line-height:1;
}
.mk-voucher-guide__head strong{
  display:block;
  margin:1px 0 3px;
  color:#7e302b;
  font-size:13px;
  font-weight:800;
  line-height:1.35;
}
.mk-voucher-guide__head p{
  margin:0!important;
  color:#5c4a45!important;
  font-size:12px!important;
  line-height:1.55!important;
}
.mk-voucher-guide__rules-title{
  margin:12px 0 6px!important;
  color:#596653!important;
  font-size:11px!important;
  font-weight:800;
  letter-spacing:.02em;
  line-height:1.4!important;
}
.mk-voucher-guide__rules{
  display:grid;
  gap:0;
  margin:12px 0 0;
  padding:0;
  border:1px solid #e2e8de;
  border-radius:10px;
  background:#fff;
  overflow:hidden;
}
.mk-voucher-guide__rule{
  display:grid;
  grid-template-columns:minmax(92px,.78fr) minmax(0,1.5fr);
  gap:10px;
  padding:9px 10px;
  border-top:1px solid #edf0eb;
}
.mk-voucher-guide__rule:first-child{border-top:0}
.mk-voucher-guide__rule dt,
.mk-voucher-guide__rule dd{margin:0}
.mk-voucher-guide__rule dt{
  color:#768173;
  font-size:11px;
  font-weight:650;
  line-height:1.45;
}
.mk-voucher-guide__rule dd{
  color:#31402f;
  font-size:11.5px;
  font-weight:700;
  line-height:1.45;
  overflow-wrap:anywhere;
}
.mk-voucher-guide__details{
  margin-top:10px;
  border-top:1px solid #eadfd9;
  padding-top:9px;
}
.mk-voucher-guide__details summary{
  color:#426b22;
  font-size:11.5px;
  font-weight:750;
  line-height:1.45;
  cursor:pointer;
}
.mk-voucher-guide__links{
  display:grid;
  gap:6px;
  margin:8px 0 0!important;
  padding:0!important;
  list-style:none!important;
}
.mk-voucher-guide__links li{margin:0!important;padding:0!important}
.mk-voucher-guide__links a{
  display:block;
  padding:7px 9px;
  border:1px solid #e1e7dd;
  border-radius:8px;
  background:#fff;
  color:#315322!important;
  font-size:11px;
  font-weight:650;
  line-height:1.4;
  text-decoration:none!important;
}
.mk-voucher-guide__more{
  margin:7px 0 0!important;
  color:#7a8277!important;
  font-size:10.5px!important;
  line-height:1.45!important;
}
.mk-voucher-guide__tip{
  margin:10px 0 0!important;
  padding:9px 10px;
  border-radius:9px;
  background:#f2f7ee;
  color:#3f5f31!important;
  font-size:11.5px!important;
  font-weight:650;
  line-height:1.5!important;
}
.mk-voucher-guide--loading{
  color:#677265;
  font-size:11.5px;
}
@media(max-width:767px){
  body.mk-v7:is(.woocommerce-cart,.woocommerce-checkout) .wc-block-components-totals-coupon__input input[type="text"]{
    min-height:56px!important;
  }
  .mk-voucher-guide{padding:12px!important}
  .mk-voucher-guide__rule{grid-template-columns:88px minmax(0,1fr);padding:9px}
}
@media(max-width:380px){
  .mk-voucher-guide__rule{grid-template-columns:1fr;gap:2px}
}


/* 1.1.0 — richer voucher guidance + direct eligible-product links */
body.mk-v7:is(.woocommerce-cart,.woocommerce-checkout) .wc-block-components-totals-coupon.mk-voucher-guide-ready > .wc-block-components-validation-error,
body.mk-v7:is(.woocommerce-cart,.woocommerce-checkout) .wc-block-components-totals-coupon.mk-voucher-guide-ready .wc-block-components-validation-error{
  display:none!important;
}
.mk-voucher-guide__eligible{
  margin-top:10px;
  padding:10px;
  border:1px solid #cfe0c5;
  border-radius:10px;
  background:#f6faf3;
}
.mk-voucher-guide__eligible-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
}
.mk-voucher-guide__eligible-head strong,
.mk-voucher-guide__eligible-head span{display:block}
.mk-voucher-guide__eligible-head strong{
  color:#315322;
  font-size:12px;
  font-weight:800;
  line-height:1.45;
}
.mk-voucher-guide__eligible-head span{
  margin-top:2px;
  color:#6d7868;
  font-size:10.5px;
  line-height:1.4;
}
.mk-voucher-guide__eligible-toggle,
.mk-voucher-guide__more-toggle{
  min-height:36px;
  padding:7px 10px;
  border:1px solid #a9c39a;
  border-radius:8px;
  background:#fff;
  color:#315322;
  font:750 11px/1.2 "Be Vietnam Pro",Inter,sans-serif;
  cursor:pointer;
}
.mk-voucher-guide__links[hidden]{display:none!important}
.mk-voucher-guide__links{
  max-height:310px;
  overflow:auto;
  margin:9px 0 0!important;
  padding:0!important;
  list-style:none!important;
}
.mk-voucher-guide__links a{
  position:relative;
  padding-right:26px!important;
}
.mk-voucher-guide__links a:after{
  content:"→";
  position:absolute;
  top:50%;
  right:9px;
  transform:translateY(-50%);
  color:#68825a;
}
.mk-voucher-guide__link-extra{display:none}
.mk-voucher-guide__eligible.is-show-all .mk-voucher-guide__link-extra{display:list-item}
.mk-voucher-guide__more-toggle{
  width:100%;
  margin-top:8px;
  border-style:dashed;
  background:#fbfdf9;
}
@media(max-width:767px){
  .mk-voucher-guide__eligible-head{grid-template-columns:1fr auto}
  .mk-voucher-guide__eligible-toggle{min-height:38px}
}

/* 1.1.1 — cart desktop layout repair.
   WooCommerce already uses a grid at desktop. Never apply percentage width to the grid children:
   percentage widths are resolved inside each grid track and collapse the totals card. */
@media(min-width:768px){
  body.mk-v7.woocommerce-cart .wc-block-components-sidebar-layout.wc-block-cart{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(300px,380px)!important;
    column-gap:16px!important;
    row-gap:16px!important;
    align-items:start!important;
  }
  body.mk-v7.woocommerce-cart .wc-block-cart__main,
  body.mk-v7.woocommerce-cart .wc-block-cart__sidebar{
    flex:initial!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    margin-left:0!important;
    box-sizing:border-box!important;
  }
  body.mk-v7.woocommerce-cart .wc-block-cart__main{
    padding-right:0!important;
  }
}
@media(min-width:768px) and (max-width:959px){
  body.mk-v7.woocommerce-cart .wc-block-components-sidebar-layout.wc-block-cart{
    grid-template-columns:minmax(0,1fr) minmax(300px,340px)!important;
  }
}
