/* EP Mini Cart Drawer v1.1.7 */

.epmcd-overlay{
  position:fixed; inset:0;
  background:rgba(0,0,0,.45);
  opacity:0; pointer-events:none;
  transition:opacity .2s ease;
  z-index:99998;
}

.epmcd-drawer{
  position:fixed;
  top:0; left:0;
  height:100vh;
  height:100dvh;
  width:min(420px, 92vw);
  background:#fff;
  transform:translateX(-105%);
  transition:transform .25s ease;
  z-index:99999;
  display:flex !important;
  flex-direction:column !important;
}

body.epmcd-open .epmcd-overlay{opacity:1; pointer-events:auto;}
body.epmcd-open .epmcd-drawer{transform:translateX(0);}

.epmcd-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 14px;
  border-bottom:1px solid #eee;
}
.epmcd-header__title{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
}
.epmcd-header__label{font-size:16px;}
.epmcd-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:22px;
  height:22px;
  padding:0 6px;
  border-radius:999px;
  background:#111;
  color:#fff;
  font-size:12px;
}
.epmcd-close{
  appearance:none;
  border:0;
  background:transparent;
  font-size:26px;
  line-height:1;
  padding:4px 8px;
  cursor:pointer;
}

.epmcd-free-ship{padding:10px 14px; border-bottom:1px solid #eee;}
.epmcd-free-ship__top{display:flex; justify-content:space-between; gap:10px; font-size:13px;}
.epmcd-free-ship__label{color:#111; font-weight:600;}
.epmcd-free-ship__status{color:#111;}
.epmcd-free-ship__bar{height:8px; background:#eee; border-radius:999px; margin-top:8px; overflow:hidden;}
.epmcd-free-ship__bar > span{display:block; height:100%; background:#2e7d32; width:0;}

.epmcd-content{padding:12px 14px; overflow:auto; flex:1; min-height:0; overscroll-behavior:contain;}
.epmcd-empty{padding:14px; color:#111;}

.epmcd-items{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px;}
.epmcd-item{display:flex; gap:12px; align-items:flex-start;}
.epmcd-item__thumb img{width:64px; height:64px; object-fit:cover; border-radius:10px;}
.epmcd-item__main{flex:1; min-width:0;}
.epmcd-item__top{display:flex; gap:10px; align-items:flex-start; justify-content:space-between;}
.epmcd-item__name{color:#111; font-weight:600; text-decoration:none; display:block; line-height:1.2;}
.epmcd-item__remove{color:#111; text-decoration:none; font-size:20px; line-height:1; padding:0 6px;}

.epmcd-item__bottom{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:8px;}

.epmcd-qty{display:flex; align-items:center; gap:6px;}
.epmcd-qty-btn{
  width:30px; height:30px;
  border-radius:8px;
  border:1px solid #ddd;
  background:#fff;
  cursor:pointer;
  font-size:18px;
  line-height:1;
}
.epmcd-qty-input{
  width:54px;
  height:30px;
  border-radius:8px;
  border:1px solid #ddd;
  text-align:center;
  color:#111;
}

.epmcd-line-subtotal,
.epmcd-line-subtotal .amount,
.epmcd-line-subtotal bdi,
.epmcd-line-subtotal span{color:#111 !important; font-weight:700;}

.epmcd-footer{border-top:1px solid #eee; padding:12px 14px; padding-bottom:calc(12px + env(safe-area-inset-bottom));}
.epmcd-footer__row{display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; color:#111;}
.epmcd-footer__row, .epmcd-footer__row *{color:#111 !important;}
.epmcd-footer__label{color:#111; font-weight:600;}
.epmcd-subtotal,
.epmcd-subtotal .amount,
.epmcd-subtotal bdi,
.epmcd-subtotal span{color:#111 !important; font-weight:800;}

.epmcd-footer__actions{display:flex; gap:10px;}
.epmcd-btn{display:inline-flex; align-items:center; justify-content:center; width:50%; padding:12px 10px; border-radius:12px; text-decoration:none; font-weight:700;}
.epmcd-btn--primary{background:#111; color:#fff !important;}
.epmcd-btn--secondary{background:#f47a1a; color:#fff !important;}

@media (max-width:420px){
  .epmcd-item__thumb img{width:56px; height:56px;}
  .epmcd-qty-input{width:50px;}
}

/* Elementor Menu Cart (side-cart) suppression to avoid double drawers */
.elementor-menu-cart__container,
.elementor-menu-cart__main{
  display:none !important;
}
