/* ============================================================
   THE NEW KITS — Cart Drawer v1
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

/* ── OVERLAY ──────────────────────────────────────────────── */
.tnk-cart-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 9998;
  backdrop-filter: none;
}
.tnk-cart-overlay.open { display: block; }

/* ── DRAWER ───────────────────────────────────────────────── */
.tnk-cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  font-family: 'Manrope', sans-serif;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.tnk-cart-drawer.open { transform: translateX(0); }

/* ── HEADER ───────────────────────────────────────────────── */
.tnk-cd-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #f0f0ec;
  flex-shrink: 0;
}
.tnk-cd-title {
  font-size: 15px; font-weight: 700; color: #111;
  display: flex; align-items: center; gap: 8px;
}
.tnk-cd-count {
  background: #111; color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 20px; height: 20px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 6px;
}
.tnk-cd-close {
  background: none; border: none; cursor: pointer; padding: 4px;
  color: #999; display: flex; align-items: center; justify-content: center;
  transition: color .15s;
}
.tnk-cd-close:hover { color: #111; }

/* ── BODY (scrollable) ────────────────────────────────────── */
.tnk-cd-body {
  flex: 1; overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #e0e0e0 transparent;
}
.tnk-cd-body::-webkit-scrollbar { width: 4px; }
.tnk-cd-body::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 2px; }

/* ── SHIPPING BAR ─────────────────────────────────────────── */
.tnk-cd-ship {
  padding: 12px 20px;
  border-bottom: 1px solid #f0f0ec;
  background: #fff;
}
.tnk-ship-text {
  font-size: 12px; color: #555;
  margin-bottom: 7px;
  display: flex; align-items: center; gap: 5px;
}
.tnk-ship-text strong { color: #111; }
.tnk-ship-done { color: #1a7a3c; font-weight: 600; }
.tnk-ship-ico { color: #1a7a3c; flex-shrink: 0; }
.tnk-ship-track {
  height: 3px; background: #ebebeb; border-radius: 2px; overflow: hidden;
}
.tnk-ship-fill {
  height: 100%; background: #111; border-radius: 2px;
  transition: width .4s ease;
}
.tnk-ship-fill.done { background: #1a7a3c; }

/* ── MULTI-BUY BANNER ─────────────────────────────────────── */
.tnk-cd-multi {
  padding: 9px 20px;
  background: #fffbf0;
  border-bottom: 1px solid #f5e6b0;
  display: flex; align-items: flex-start; gap: 7px;
  font-size: 11px; color: #7a4d00; line-height: 1.5;
}
.tnk-cd-multi svg { flex-shrink: 0; margin-top: 1px; color: #b35c00; }

/* ── CART ITEMS ───────────────────────────────────────────── */
.tnk-cd-items { padding: 4px 0; }

.tnk-cd-item {
  display: flex; gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #f5f5f3;
  transition: background .12s;
}
.tnk-cd-item:last-child { border-bottom: none; }

.tnk-cdi-img {
  width: 64px; height: 64px;
  flex-shrink: 0; border-radius: 6px;
  overflow: hidden; background: #f5f5f3;
  display: block;
}
.tnk-cdi-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tnk-cdi-info { flex: 1; min-width: 0; }

.tnk-cdi-name {
  font-size: 13px; font-weight: 600; color: #111;
  display: block; text-decoration: none;
  line-height: 1.3; margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tnk-cdi-name:hover { text-decoration: underline; }

.tnk-cdi-meta { font-size: 11px; color: #999; margin-bottom: 8px; }

.tnk-cdi-row { display: flex; align-items: center; justify-content: space-between; }

.tnk-cdi-price { font-size: 13px; font-weight: 700; color: #111; }
.tnk-cdi-price del { font-size: 11px; color: #bbb; font-weight: 400; margin-right: 3px; }
.tnk-cdi-price ins { text-decoration: none; }
.tnk-cdi-price .screen-reader-text { display: none; }

.tnk-cdi-qty {
  display: flex; align-items: center; gap: 6px;
}
.tnk-qty-btn {
  width: 24px; height: 24px;
  border: 1px solid #e0e0e0; border-radius: 5px;
  background: #fff; cursor: pointer;
  font-size: 14px; color: #555;
  display: flex; align-items: center; justify-content: center;
  transition: all .12s; line-height: 1;
}
.tnk-qty-btn:hover { border-color: #111; color: #111; }
.tnk-qty-n { font-size: 13px; font-weight: 600; color: #111; min-width: 14px; text-align: center; }

.tnk-cdi-rm {
  font-size: 10px; color: #bbb; text-decoration: none;
  display: inline-block; margin-top: 6px; cursor: pointer;
  transition: color .12s;
}
.tnk-cdi-rm:hover { color: #d0021b; }

/* ── EMPTY STATE ──────────────────────────────────────────── */
.tnk-cd-empty {
  display: flex; flex-direction: column; align-items: center;
  padding: 48px 24px; gap: 8px; text-align: center;
}
.tnk-cd-empty svg { color: #ccc; margin-bottom: 8px; }
.tnk-empty-title { font-size: 14px; font-weight: 600; color: #111; }
.tnk-empty-sub { font-size: 12px; color: #999; }
.tnk-empty-btn {
  margin-top: 10px; padding: 10px 24px;
  background: #111; color: #fff;
  font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: .3px; border: none; cursor: pointer; border-radius: 8px;
}

/* ── UPSELL ROW ───────────────────────────────────────────── */
.tnk-upsell-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  background: #f9f9f7;
  border-top: 1px solid #f0f0ec;
}
.tnk-up-img {
  width: 44px; height: 44px; border-radius: 6px;
  object-fit: cover; background: #eee; flex-shrink: 0;
}
.tnk-up-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 1px;
}
.tnk-up-lbl { font-size: 9px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #999; }
.tnk-up-name { font-size: 12px; font-weight: 600; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tnk-up-price { font-size: 11px; color: #777; }
.tnk-up-btn {
  font-size: 11px; font-weight: 700;
  padding: 6px 12px;
  border: 1.5px solid #111; border-radius: 6px;
  color: #111; text-decoration: none; white-space: nowrap;
  flex-shrink: 0; transition: all .12s;
}
.tnk-up-btn:hover { background: #111; color: #fff; }

/* ── FOOTER ───────────────────────────────────────────────── */
.tnk-cd-footer {
  border-top: 1px solid #f0f0ec;
  padding: 16px 20px 20px;
  flex-shrink: 0; background: #fff;
}

/* TOTALS */
.tnk-totals-row {
  display: flex; justify-content: space-between;
  font-size: 12px; color: #777;
  padding: 3px 0;
}
.tnk-totals-row span:last-child { color: #111; font-weight: 500; }
.tnk-totals-row.discount span:last-child { color: #1a7a3c; }
.tnk-totals-total {
  display: flex; justify-content: space-between;
  padding: 10px 0 14px;
  border-top: 1px solid #f0f0ec;
  margin-top: 6px;
}
.tnk-totals-total span:first-child { font-size: 14px; font-weight: 700; color: #111; }
.tnk-totals-total span:last-child  { font-size: 16px; font-weight: 700; color: #111; }

/* CHECKOUT BUTTON */
.tnk-cd-checkout {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 15px 20px;
  background: #111; color: #fff;
  font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 700;
  letter-spacing: .3px; text-decoration: none;
  border-radius: 10px; transition: background .15s;
  margin-bottom: 10px;
}
.tnk-cd-checkout:hover { background: #333; }
.tnk-cd-checkout svg { color: rgba(255,255,255,.7); }

/* KLARNA */
.tnk-cd-klarna p {
  font-size: 11px; color: #888; text-align: center;
  margin-bottom: 12px; line-height: 1.4;
}
.tnk-cd-klarna strong { color: #111; }

/* TRUST STRIP */
.tnk-cd-trust {
  display: flex; justify-content: center; gap: 20px;
  padding-top: 10px;
  border-top: 1px solid #f5f5f3;
}
.tnk-cdt {
  display: flex; align-items: center; gap: 4px;
  font-size: 10px; color: #aaa;
}
.tnk-cdt svg { flex-shrink: 0; }

/* ── CART ICON COUNT (in header) ──────────────────────────── */
.tnk-cart-icon-count {
  position: absolute; top: -6px; right: -6px;
  background: #d0021b; color: #fff;
  font-size: 9px; font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Manrope', sans-serif;
}

/* ── MOBILE ───────────────────────────────────────────────── */
@media (max-width: 480px) {
  .tnk-cart-drawer { width: 100vw; }
  .tnk-cd-header { padding: 16px; }
  .tnk-cd-ship { padding: 10px 16px; }
  .tnk-cd-multi { padding: 8px 16px; }
  .tnk-cd-item { padding: 12px 16px; }
  .tnk-cd-footer { padding: 14px 16px 18px; }
  .tnk-upsell-row { padding: 10px 16px; }
}
