/* 10.8 mini-cart drawer. Linked from the drawer markup (works on page-cached pages via cart fragments). */
.tp8co-mc { --ink:#333; --ink-2:#555; --muted:#8a8a8a; --line:#ededed; --line-2:#e0e0e0; --band:#f4f4f0; --sage-bg:#eef2ec; --danger:#c0392b;
  font-family: "Work Sans","IBM Plex Sans Arabic",system-ui,sans-serif; color: var(--ink); display: flex; flex-direction: column; height: 100%; }
.tp8co-mc .tp8co-ic { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tp8co-mc .tp8co-ic.is-sm { width: 16px; height: 16px; } .tp8co-mc .tp8co-ic.is-xs { width: 14px; height: 14px; }
.tp8co-mc .cart-details { flex: 1 1 auto; overflow-y: auto; }
.tp8co-mc .tp8co-mc-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 12px; border-bottom: 1px solid var(--line); margin: 0; }
.tp8co-mc .top-total-cart { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 8px; margin: 0; }
.tp8co-mc .top-total-cart .count { position: static; background: var(--band); color: var(--ink); border-radius: 999px; font-size: 12px; padding: 1px 9px; font-weight: 600; min-width: 0; height: auto; line-height: 1.6; }
.tp8co-mc .tp8co-mc-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); position: static; }
.tp8co-mc .tp8co-mc-x::before, .tp8co-mc .tp8co-mc-x::after { display: none; }
.tp8co-mc .tp8co-mc-added { margin: 12px 16px 4px; background: var(--sage-bg); color: #3f5a3a; border-radius: 10px; padding: 9px 12px; font-size: 12.5px; display: flex; gap: 8px; align-items: center; font-weight: 500; }
.tp8co-mc .woocommerce-cart-form__contents { padding: 0 16px; }
.tp8co-mc .tp8co-mc-it { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tp8co-mc .tp8co-th { width: 56px; height: 56px; border-radius: 12px; background: #f7f7f5; border: 1px solid var(--line); flex: none; overflow: hidden; }
.tp8co-mc .tp8co-th img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.tp8co-mc .tp8co-mc-info { flex: 1 1 auto; min-width: 0; }
.tp8co-mc .product-name, .tp8co-mc .product-name a { font-size: 12.5px; line-height: 1.45; color: var(--ink); text-transform: none; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.tp8co-mc .product-subtotal { font-weight: 600; font-size: 13.5px; margin-top: 2px; }
.tp8co-mc .tp8co-mc-act { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin: 0; }
.tp8co-mc .quantity { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; height: 34px; width: 96px; justify-content: space-between; padding: 0 3px; background: #fff; }
.tp8co-mc .quantity .minus { order: 1; } .tp8co-mc .quantity .qty { order: 2; } .tp8co-mc .quantity .plus { order: 3; }
.tp8co-mc .quantity button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.tp8co-mc .quantity .qty { width: 30px; border: 0; text-align: center; font-weight: 600; background: transparent; -moz-appearance: textfield; appearance: textfield; padding: 0; height: 28px; }
.tp8co-mc .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; }
.tp8co-mc .product-remove a { color: var(--muted) !important; font-size: 0 !important; display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; }
.tp8co-mc .product-remove a:hover { color: var(--danger) !important; background: #fdf2f1; }
.tp8co-mc .tp8co-mc-f { border-top: 1px solid var(--line); padding: 14px 16px 18px; margin: 0; background: #fff; }
.tp8co-mc .total-cart { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.tp8co-mc .tp8co-mc-note { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 12.5px; margin: 0 0 10px; }
.tp8co-mc .buttons { display: grid; gap: 8px; margin: 0; }
.tp8co-mc .tp8co-cta { width: 100%; height: 50px; border-radius: 999px; background: var(--ink); color: #fff !important; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 15px "Karla","IBM Plex Sans Arabic",sans-serif; text-transform: none; border: 0; margin: 0; }
.tp8co-mc .tp8co-cta.is-ghost { background: #fff; color: var(--ink) !important; border: 1.5px solid var(--ink); height: 46px; }
.tp8co-mc .tp8co-mc-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 10px; text-align: center; }
.tp8co-mc .tp8co-mc-empty-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--band); display: inline-flex; align-items: center; justify-content: center; color: #6c8066; }
.tp8co-mc #coupons_list { display: none !important; }
/* Theme resets: the theme's '.calma-topcart.popup .mini-cart .cart-popup …' rules (up to 0,5,0) outrank the ones above. */
.tp8co-mc .top-total-cart { font-size: 17px !important; font-weight: 600 !important; }
.tp8co-mc .product-name a { font-size: 12.5px !important; font-weight: 500 !important; text-transform: none !important; }
.tp8co-mc .total-cart { font-size: 15px !important; }
.tp8co-mc .buttons { display: grid !important; }
.tp8co-mc .buttons .tp8co-cta { display: flex !important; font: 700 15px "Karla","IBM Plex Sans Arabic",sans-serif !important; text-transform: none !important; }
.tp8co-mc .buttons .tp8co-cta.is-ghost { background: #fff !important; height: 46px !important; }
/* The theme's header (z-index 9) holds the drawer and its overlay, so its mobile bottom toolbar (z-index 10) covered
   the drawer's checkout button. Lift the header only while its drawer is open. */
.bwp-header:has(.calma-topcart.show) { z-index: 10001; }
/* Touch targets: controls keep their visual size; the tap area grows to 44×44. */
.tp8co-mc .quantity { overflow: visible !important; }
.tp8co-mc .quantity button, .tp8co-mc .product-remove a { position: relative; }
.tp8co-mc .quantity button::after, .tp8co-mc .product-remove a::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
.tp8co-mc .tp8co-mc-x { width: 44px !important; height: 44px !important; }
.tp8co-mc .tp8co-mc-x::before, .tp8co-mc .tp8co-mc-x::after { display: none !important; }
/* Theme resets: the theme's header rules make the close link a block (icon top-left) and the count a raised 20px circle. */
.tp8co-mc .tp8co-mc-x { display: inline-flex !important; align-items: center; justify-content: center; }
.tp8co-mc .top-total-cart .count { position: static !important; top: auto !important; display: inline-block !important; width: auto !important; height: auto !important; border-radius: 999px !important; }
.tp8co-mc .tp8co-mc-h { border-bottom: 1px solid var(--line) !important; }
