/* Phone mini-cart: reference-inspired three-quarter drawer, native WooCommerce data/actions. */
@media (max-width:680px) {
  body.ec-drawer-active .ec-floating-whatsapp { display:none !important; }
  .ec-drawer--cart { display:flex !important; flex-direction:column; width:75vw !important; max-width:none !important; min-width:0 !important; height:100dvh; border-left:1px solid #d9e5e4; background:#fff; box-shadow:-18px 0 44px rgba(11,42,48,.24); }
  .ec-drawer--cart .ec-drawer__head { display:flex !important; align-items:center; justify-content:space-between; gap:12px; flex:0 0 auto; padding:23px 20px !important; background:#fff; border-bottom:1px solid #e1e9e8; }
  .ec-drawer--cart .ec-drawer__head h2 { margin:0; color:#172e35; font-size:23px; font-weight:850; letter-spacing:-.035em; }
  .ec-drawer--cart .ec-drawer__close { display:inline-flex !important; align-items:center; gap:7px; width:auto; height:auto; padding:4px 0; border:0; border-radius:0; background:transparent; color:#22393f; font-size:17px; line-height:1; }
  .ec-drawer--cart .ec-drawer__close span { font-size:31px; font-weight:300; line-height:.65; }
  .ec-drawer--cart .ec-drawer__close b { font-size:16px; font-weight:750; }
  .ec-drawer--cart .ec-drawer__close:focus { outline:none; }
  .ec-drawer--cart .ec-drawer__close:focus-visible { outline:2px solid #0b8986; outline-offset:3px; border-radius:4px; }

  .ec-drawer--cart .ec-mini-cart { flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:0 20px !important; }
  .ec-drawer--cart .woocommerce-mini-cart { margin:0 !important; padding:0 !important; }
  .ec-drawer--cart .woocommerce-mini-cart-item { position:relative; display:block !important; min-height:157px; margin:0 !important; padding:24px 0 22px !important; border-bottom:1px solid #e6eceb !important; }
  .ec-drawer--cart .woocommerce-mini-cart-item > a:not(.remove) { display:grid; grid-template-columns:82px minmax(0,1fr); align-items:start; gap:16px; min-width:0; padding-right:25px; color:#1b3036; font-size:17px; font-weight:780; line-height:1.37; }
  .ec-drawer--cart .woocommerce-mini-cart-item > a:not(.remove) img { grid-column:1; grid-row:1 / span 3; width:82px !important; height:82px !important; min-width:82px; padding:4px; border:0; border-radius:0; background:#fff; object-fit:contain; }
  .ec-drawer--cart .ms-mini-cart-title { grid-column:2; display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:3; }
  .ec-drawer--cart .woocommerce-mini-cart-item > a.remove { position:absolute !important; z-index:2; top:23px !important; right:0 !important; left:auto !important; display:grid !important; place-items:center; width:24px !important; height:24px !important; margin:0 !important; padding:0; border:0 !important; border-radius:0; background:transparent; color:#5c6263 !important; font-size:23px !important; font-weight:300; line-height:1 !important; }
  .ec-drawer--cart .ms-mini-cart-quantity-row { display:flex; align-items:center; gap:12px; margin:13px 0 0 98px; min-width:0; }
  .ec-drawer--cart .ms-mini-cart-qty { display:grid; flex:0 0 auto; grid-template-columns:37px 44px 37px; width:118px; height:46px; margin:0; border:1px solid #e0e5e4; border-radius:6px; overflow:hidden; }
  .ec-drawer--cart .ms-mini-cart-qty button { display:grid; place-items:center; padding:0; border:0; background:#fff; color:#687174; font-size:23px; font-weight:300; line-height:1; }
  .ec-drawer--cart .ms-mini-cart-qty span { display:grid; place-items:center; border-inline:1px solid #e0e5e4; color:#697174; font-size:16px; font-weight:500; }
  .ec-drawer--cart .ms-mini-cart-qty button:disabled { opacity:.45; }
  .ec-drawer--cart .woocommerce-mini-cart-item > .quantity { display:block; margin:0; min-width:0; color:#64777a; font-size:14px; font-weight:600; white-space:nowrap; }
  .ec-drawer--cart .woocommerce-mini-cart-item > .quantity .woocommerce-Price-amount { color:var(--teal,#087f7a); font-size:16px; font-weight:850; }
  .ec-drawer--cart .woocommerce-mini-cart__total,
  .ec-drawer--cart .woocommerce-mini-cart__buttons { display:none !important; }
  .ec-drawer--cart .woocommerce-mini-cart__empty-message { padding:42px 0; color:#6c8084; text-align:center; }

  .ec-drawer--cart .ec-drawer__foot { position:relative; display:block !important; flex:0 0 auto; margin:0; padding:19px 20px calc(20px + env(safe-area-inset-bottom)) !important; border-top:1px solid #e1e8e7; background:#fff; }
  .ec-drawer--cart .ec-cart-footer-total { display:flex; align-items:baseline; justify-content:space-between; gap:15px; padding:0 0 17px; color:#293e43; }
  .ec-drawer--cart .ec-cart-footer-total span { font-size:22px; font-weight:500; }
  .ec-drawer--cart .ec-cart-footer-total strong { color:#14748a; font-size:23px; font-weight:850; white-space:nowrap; }
  .ec-drawer--cart .ec-cart-footer-actions { position:relative; display:grid; gap:12px; }
  .ec-drawer--cart .ec-cart-footer-view,
  .ec-drawer--cart .ec-cart-footer-checkout { display:flex; align-items:center; justify-content:center; min-height:54px; border-radius:4px; font-size:16px; font-weight:800; text-decoration:none; }
  .ec-drawer--cart .ec-cart-footer-view { padding:0 18px; border:1px solid #0d5154; background:#fff; color:#0d5154; }
  .ec-drawer--cart .ec-cart-footer-checkout { border:1px solid #0d5154; background:#0d5154; color:#fff; }
}
@media (max-width:390px) {
  .ec-drawer--cart .ec-drawer__head { padding-inline:16px !important; }
  .ec-drawer--cart .ec-drawer__head h2 { min-width:0; white-space:nowrap; font-size:19px; }
  .ec-drawer--cart .ec-drawer__close { gap:4px; font-size:15px; }
  .ec-drawer--cart .ec-drawer__close span { font-size:27px; }
  .ec-drawer--cart .ec-drawer__close b { font-size:15px; }
  .ec-drawer--cart .ec-mini-cart { padding-inline:16px !important; }
  .ec-drawer--cart .woocommerce-mini-cart-item > a:not(.remove) { grid-template-columns:70px minmax(0,1fr); gap:13px; font-size:15px; }
  .ec-drawer--cart .woocommerce-mini-cart-item > a:not(.remove) img { width:70px !important; height:70px !important; min-width:70px; }
  .ec-drawer--cart .ms-mini-cart-quantity-row { gap:8px; margin:13px 0 0; }
  .ec-drawer--cart .ms-mini-cart-qty { grid-template-columns:29px 32px 29px; width:90px; height:42px; }
  .ec-drawer--cart .ms-mini-cart-qty button { font-size:20px; }
  .ec-drawer--cart .ms-mini-cart-qty span { font-size:14px; }
  .ec-drawer--cart .ms-mini-cart-quantity-row .quantity { font-size:12px; }
  .ec-drawer--cart .ms-mini-cart-quantity-row .quantity .woocommerce-Price-amount { font-size:14px; }
  .ec-drawer--cart .ec-drawer__foot { padding-inline:16px !important; }
  .ec-drawer--cart .ec-cart-footer-total span { font-size:19px; }
  .ec-drawer--cart .ec-cart-footer-total strong { font-size:20px; }
}
