/* ============================================================
   Travulls Cart & Checkout — Drawer CSS v1.1
   Palette: Yellow #FFD000 | Blue #0096C7 | Lime #AACC00 | Black #1A1A1A
   ============================================================ */

/* ── Body lock ── */
html:has(body.tcc-open),
body.tcc-open {
  overflow: hidden !important;
  height: 100% !important;
}

/* ── Overlay ── */
.tcc-overlay {
  position: fixed; inset: 0; z-index: 99997;
  background: rgba(0,0,0,.38);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  touch-action: none;
}
.tcc-open .tcc-overlay { opacity: 1; visibility: visible; }

/* ── Drawer ── */
.tcc-drawer {
  position: fixed; top: 0; right: 0;
  z-index: 99998;
  width: 33.333vw;
  height: 100vh;
  height: 100dvh;
  background: #fff;
  box-shadow: -8px 0 32px rgba(0,0,0,.12);
  transform: translateX(102%);
  transition: transform .28s cubic-bezier(.32,.72,0,1);
  display: flex; flex-direction: column;
}
.tcc-open .tcc-drawer { transform: translateX(0); }

/* ── Inner ── */
.tcc-drawer-inner {
  display: flex; flex-direction: column;
  height: 100%; overflow: hidden;
  font-family: inherit; color: #1A1A1A;
}

/* ── Body (Scrollable Container) ── */
.tcc-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 14px 0;
  scrollbar-width: thin;
  scrollbar-color: #eee transparent;
  overscroll-behavior: contain;
}
.tcc-body::-webkit-scrollbar { width: 4px; }
.tcc-body::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

/* ── Header ── */
.tcc-header {
  flex-shrink: 0 !important;
  display: flex !important; align-items: center !important; justify-content: space-between !important;
  padding: 0 16px !important; margin: 0 !important;
  border-bottom: 1px solid #EEEEEE !important;
  background: #fff !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  box-sizing: border-box !important;
}
.tcc-header h2 {
  margin: 0 !important; padding: 0 !important;
  font-size: 13px !important; font-weight: 600 !important;
  line-height: 1 !important; color: #1A1A1A !important;
}
.tcc-close {
  display: flex !important; align-items: center !important; justify-content: center !important;
  width: 20px !important; height: 20px !important;
  min-width: 20px !important; max-width: 20px !important;
  min-height: 0 !important; max-height: 20px !important;
  border: 1px solid #EEEEEE !important; border-radius: 50% !important;
  background: #fff !important; color: #1A1A1A !important; cursor: pointer !important;
  transition: background .15s !important;
  padding: 0 !important; margin: 0 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}
.tcc-close svg { display: block !important; width: 9px !important; height: 9px !important; flex-shrink: 0 !important; }
.tcc-close:hover { background: #f5f5f5 !important; }

/* ── Milestones Tracker progress bar and nodes ── */
.tcc-milestones {
  margin: 10px 14px !important;
  padding: 15px !important;
  background: #FFFBEB !important;
  border: 1px solid #FDE68A !important;
  border-radius: 8px !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}
.tcc-milestones-header {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #1A1A1A !important;
  text-align: center !important;
  margin: 0 0 12px !important;
  line-height: 1.3 !important;
}
.tcc-milestones-header strong {
  font-weight: 700 !important;
}
.tcc-milestones-track-wrapper {
  position: relative !important;
  height: 48px !important;
  margin: 10px 32px 0 !important;
}
.tcc-milestones-line-bg {
  position: absolute !important;
  top: 10px !important;
  left: 0 !important;
  right: 0 !important;
  height: 6px !important;
  background: #E5E7EB !important;
  border-radius: 3px !important;
  z-index: 1 !important;
}
.tcc-milestones-line-active {
  position: absolute !important;
  top: 10px !important;
  left: 0 !important;
  height: 6px !important;
  background: #279E65 !important; /* Brand Green */
  border-radius: 3px !important;
  z-index: 2 !important;
  transition: width .4s ease !important;
}
.tcc-milestones-nodes {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 100% !important;
  z-index: 3 !important;
}
.tcc-milestone-node {
  position: absolute !important;
  top: 0 !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 68px !important;
  text-align: center !important;
}
.tcc-milestone-icon {
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  background: #E5E7EB !important;
  border: 2px solid #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 4 !important;
  color: #9CA3AF !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
  transition: background-color 0.3s, color 0.3s !important;
  box-sizing: border-box !important;
}
.tcc-milestone-icon.unlocked {
  background: #279E65 !important; /* Brand Green */
  color: #fff !important;
}
.tcc-milestone-icon svg {
  display: block !important;
  flex-shrink: 0 !important;
  width: 10px !important;
  height: 10px !important;
  stroke: currentColor !important;
  fill: none !important;
}
.tcc-milestone-label {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #1F2937 !important;
  margin-top: 6px !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}
.tcc-milestone-subtext {
  font-size: 9px !important;
  color: #6B7280 !important;
  margin-top: 2px !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}
.tcc-milestone-unlocked {
  color: #279E65 !important; /* Brand Green */
  font-weight: 600 !important;
}

/* ── Items list (Single parent card container) ── */
.tcc-items {
  display: flex;
  flex-direction: column;
  background: #FAFAFA;
  border: 1px solid #EEEEEE;
  border-radius: 10px;
  margin: 0 14px;
  padding: 0;
  overflow: hidden;
  flex-shrink: 0;
}

/* ── Item row inside the card ── */
.tcc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
}
.tcc-item:not(:last-child) {
  border-bottom: 1px solid #EEEEEE;
}
.tcc-item-image {
  position: relative;
  width: 50px !important; height: 50px !important;
  min-width: 50px !important; max-width: 50px !important;
  min-height: 50px !important; max-height: 50px !important;
  flex-shrink: 0 !important;
  border-radius: 6px; overflow: hidden;
  background: #f0f0f0; display: block;
}
.tcc-item-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Save badge on image */
.tcc-save-badge {
  position: absolute; top: 4px; left: 4px;
  background: #AACC00; color: #1A1A1A;
  font-size: 8px; font-weight: 700;
  padding: 1px 4px; border-radius: 3px;
  line-height: 1.2;
}

.tcc-item-main {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}

.tcc-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #1A1A1A;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.tcc-title:hover { color: #0096C7; }

/* Qty selector on right-middle */
.tcc-qty {
  display: flex !important; align-items: center !important;
  border: 1px solid #FDE68A !important; border-radius: 6px !important;
  background: #FFFBEB !important; overflow: hidden !important;
  flex-shrink: 0 !important;
  width: 58px !important; height: 26px !important;
  min-width: 58px !important; max-width: 58px !important;
  min-height: 26px !important; max-height: 26px !important;
}
.tcc-qty button {
  width: 18px !important; height: 24px !important;
  min-width: 18px !important; max-width: 18px !important;
  min-height: 24px !important; max-height: 24px !important;
  padding: 0 !important; margin: 0 !important;
  border: none !important; background: transparent !important; color: #1A1A1A !important;
  font-size: 13px !important; cursor: pointer !important; display: flex !important;
  align-items: center !important; justify-content: center !important;
  transition: background .15s, color .15s !important;
  line-height: 1 !important;
  box-shadow: none !important;
}
.tcc-qty button:hover { background: #FDE68A !important; color: #1A1A1A !important; }
.tcc-qty span {
  width: 22px !important; height: 24px !important;
  min-width: 22px !important; max-width: 22px !important;
  min-height: 24px !important; max-height: 24px !important;
  padding: 0 !important; margin: 0 !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  font-size: 12px !important; font-weight: 600 !important; color: #1A1A1A !important;
  border: none !important;
  line-height: 1 !important;
}

/* Price column on far-right */
.tcc-price-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 2px !important;
  flex-shrink: 0 !important;
  text-align: right !important;
  width: 62px !important;
  min-width: 62px !important;
  max-width: 62px !important;
}
.tcc-price {
  font-size: 13px;
  font-weight: 600;
  color: #1A1A1A;
  white-space: nowrap;
}
.tcc-old-price {
  font-size: 10px;
  color: #AAAAAA;
  text-decoration: line-through;
  white-space: nowrap;
}

/* ── Free gift ── */
.tcc-gift {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 12px;
  margin: 0 14px; padding: 10px 12px;
  border: 1px solid #AACC00; border-radius: 10px;
  background: #EAFFD0;
}
.tcc-gift-icon { font-size: 22px; flex-shrink: 0; }
.tcc-gift strong { display: block; font-size: 12px; font-weight: 600; color: #3D5A00; }
.tcc-gift span { display: block; font-size: 11px; color: #3D5A00; opacity: .85; margin-top: 1px; }

/* ── Cross-sells — horizontal scroll ── */
.tcc-cross-sells {
  flex-shrink: 0;
  padding: 16px 14px 0;
  border-top: 1px solid #EEEEEE;
}
.tcc-cross-sells h3 {
  font-size: 11px; font-weight: 600; color: #888;
  text-transform: uppercase; letter-spacing: .05em;
  margin: 0 0 8px;
}
.tcc-cross-scroll {
  display: flex; gap: 8px;
  overflow-x: auto; overflow-y: visible;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.tcc-cross-scroll::-webkit-scrollbar { display: none; }
.tcc-cross-card {
  flex-shrink: 0 !important;
  width: 80px !important;
  min-width: 80px !important;
  max-width: 80px !important;
}
.tcc-cross-image {
  display: block !important;
  width: 80px !important; height: 80px !important;
  min-width: 80px !important; max-width: 80px !important;
  min-height: 80px !important; max-height: 80px !important;
  border-radius: 8px !important; overflow: hidden !important;
  background: #f5f5f5 !important; border: 1px solid #EEEEEE !important;
  margin-bottom: 5px !important;
}
.tcc-cross-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tcc-cross-name {
  font-size: 10px; font-weight: 500; color: #1A1A1A;
  line-height: 1.3; margin-bottom: 3px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.tcc-cross-price { font-size: 11px; font-weight: 600; color: #1A1A1A; margin-bottom: 5px; }
.tcc-cross-add-btn {
  position: absolute !important;
  bottom: 6px !important;
  right: 6px !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  min-height: 0 !important;
  max-height: 22px !important;
  border-radius: 4px !important;
  background: #FFD000 !important;
  border: none !important;
  color: #1A1A1A !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 2px 4px rgba(0,0,0,.15) !important;
  transition: transform .15s, background .15s !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  z-index: 2 !important;
}
.tcc-cross-add-btn:hover {
  background: #FFE033 !important;
  transform: scale(1.1) !important;
}

/* ── Footer ── */
.tcc-footer {
  flex-shrink: 0;
  padding: 14px 16px;
  border-top: 1px solid #EEEEEE;
  background: #fff;
  display: flex; flex-direction: column; gap: 10px;
}

/* ── WooCommerce Notices in Drawer ── */
.tcc-notices {
  margin: 0 14px 12px;
}
.tcc-notices .woocommerce-error,
.tcc-notices .woocommerce-message,
.tcc-notices .woocommerce-info {
  list-style: none !important;
  margin: 0 0 8px 0 !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
}
.tcc-notices .woocommerce-error {
  background: #FFF5F5 !important;
  border: 1px solid #FEB2B2 !important;
  color: #C53030 !important;
}
.tcc-notices .woocommerce-message {
  background: #F0FFF4 !important;
  border: 1px solid #9AE6B4 !important;
  color: #2F855A !important;
}
.tcc-notices .woocommerce-info {
  background: #EBF8FF !important;
  border: 1px solid #90CDF4 !important;
  color: #2B6CB0 !important;
}
.tcc-notices ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.tcc-notices li {
  margin: 0 !important;
  padding: 0 !important;
}

/* Coupon */
.tcc-coupon {
  display: flex;
  gap: 6px;
  padding: 0 14px;
}
.tcc-coupon input {
  flex: 1; height: 36px;
  border: 1px solid #DDDDDD; border-radius: 6px;
  padding: 0 10px; font-size: 12px; color: #1A1A1A;
  background: #fafafa; outline: none;
  transition: border-color .15s;
}
.tcc-coupon input:focus { border-color: #0096C7; }
.tcc-coupon button {
  height: 36px; padding: 0 14px;
  background: #f0f0f0; border: 1px solid #DDDDDD;