/* ============================================================
   DG Bundle Together v3 — Cart Drawer Styles
   All values hardcoded (no var() dependency) so the card
   renders correctly whether loaded fresh or via AJAX fragment.
   Colour palette mirrors main.css tokens exactly.
   ============================================================ */

/* ── Wrapper — full width inside the drawer's padding ── */
.dgbt-wrap {
  margin: 0 0 2px;
  padding: 0 14px;
}

/* ── Primary card ── */
.dgbt-card {
  background: #ffffff;
  border: 2px solid #FFB800;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,95,107,0.10);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Urgency strip ── */
.dgbt-urgency-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 13px 8px;
  background: #005F6B;
  gap: 8px;
}
.dgbt-urgency-left {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  min-width: 0;
  flex: 1;
}
.dgbt-urgency-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dgbt-urgency-badge {
  background: #FFB800;
  color: #0F1111;
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
  font-family: 'Inter', sans-serif;
}

/* ── Body ── */
.dgbt-body {
  padding: 12px 13px 10px;
  background: #ffffff;
}

/* ── Offer row: image + details ── */
.dgbt-offer-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 11px;
}

/* Image box */
.dgbt-offer-img {
  width: 68px;
  height: 68px;
  min-width: 68px;
  border-radius: 10px;
  border: 1px solid #D5D9D9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background: #EAEDED;
}
.dgbt-offer-img img,
.dgbt-offer-img .attachment-woocommerce_thumbnail,
.dgbt-offer-img .wp-post-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 0 !important;
}
.dgbt-save-chip {
  position: absolute;
  top: 3px;
  left: 3px;
  background: #E53935;
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 99px;
  line-height: 1.5;
  pointer-events: none;
  font-family: 'Inter', sans-serif;
}

/* Details column */
.dgbt-offer-details {
  flex: 1;
  min-width: 0;
}
.dgbt-why-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #067D62;
  margin-bottom: 3px;
  line-height: 1.3;
  font-family: 'Inter', sans-serif;
}
.dgbt-offer-name {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #0F1111;
  line-height: 1.25;
  margin-bottom: 5px;
}
.dgbt-offer-pricing {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}
.dgbt-price-now {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #005F6B;
  letter-spacing: -0.02em;
  line-height: 1;
}
.dgbt-price-orig {
  font-size: 10px;
  color: #94A3B8;
  text-decoration: line-through;
  font-weight: 400;
}
.dgbt-price-save-pill {
  font-size: 9.5px;
  font-weight: 700;
  color: #067D62;
  background: #e6f7f0;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.01em;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.dgbt-social-proof {
  font-size: 9.5px;
  color: #94A3B8;
  font-style: italic;
  margin-top: 3px;
  font-family: 'Inter', sans-serif;
}

/* ── Combo strip ── */
.dgbt-combo-strip {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #F7F8F8;
  border: 1px solid #D5D9D9;
  border-radius: 9px;
  padding: 7px 10px;
  margin-bottom: 8px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.dgbt-combo-pip {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 6px;
  background: #EAEDED;
  border: 1px solid #D5D9D9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.dgbt-combo-pip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dgbt-combo-pip--partner {
  border-color: rgba(231,118,0,0.5);
  box-shadow: 0 0 0 1.5px rgba(231,118,0,0.18);
}
.dgbt-combo-sep {
  font-size: 13px;
  color: #94A3B8;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}
.dgbt-combo-eq {
  font-size: 12px;
  color: #008296;
  font-weight: 800;
  flex-shrink: 0;
  margin: 0 1px;
  font-family: 'Inter', sans-serif;
}
.dgbt-combo-totals {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-shrink: 0;
}
.dgbt-combo-total-price {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #005F6B;
  letter-spacing: -0.02em;
  line-height: 1;
}
.dgbt-combo-total-old {
  font-size: 9.5px;
  color: #94A3B8;
  text-decoration: line-through;
  font-weight: 400;
}
.dgbt-combo-save-badge {
  font-size: 9px;
  font-weight: 700;
  color: #067D62;
  background: #C8EFE9;
  border-radius: 5px;
  padding: 2px 6px;
  white-space: nowrap;
  margin-left: auto;
  font-family: 'Inter', sans-serif;
}

/* ── Savings highlight ── */
.dgbt-savings-highlight {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #e6f7f0;
  border: 1px solid #b2e5cf;
  border-radius: 8px;
  padding: 7px 11px;
  margin-bottom: 10px;
  font-size: 10.5px;
  font-weight: 600;
  color: #007a50;
  font-family: 'Inter', sans-serif;
  line-height: 1.35;
}
.dgbt-savings-icon {
  font-size: 14px;
  flex-shrink: 0;
  line-height: 1;
}
.dgbt-savings-text strong {
  font-weight: 800;
  color: #005F6B;
}

/* ── CTA button — amber ── */
.dgbt-cta-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 12px 16px;
  background: #FFB800 !important;
  color: #0F1111 !important;
  border: none !important;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.01em;
  line-height: 1.2;
  box-sizing: border-box;
  transition: background 0.15s ease, transform 0.1s ease;
  text-align: center;
}
.dgbt-cta-btn:hover  { background: #e6a500 !important; }
.dgbt-cta-btn:active { transform: scale(0.98); }
.dgbt-cta-btn.dgbt-cta-btn--loading {
  opacity: 0.65;
  pointer-events: none;
}
.dgbt-cta-btn.dgbt-cta-btn--success {
  background: #067D62 !important;
  color: #ffffff !important;
  pointer-events: none;
}
.dgbt-cta-sub {
  text-align: center;
  font-size: 9.5px;
  color: #8F9191;
  padding: 4px 0 1px;
  font-family: 'Inter', sans-serif;
}

/* ── Secondary (slim) suggestion ── */
.dgbt-secondary {
  margin: 5px 0 0;
  background: #f0fdf9;
  border: 1px dashed rgba(0,130,150,0.4);
  border-radius: 10px;
  overflow: hidden;
}
.dgbt-secondary-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
}
.dgbt-secondary-img {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 6px;
  background: #EAEDED;
  border: 1px solid #D5D9D9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.dgbt-secondary-img img,
.dgbt-secondary-img .attachment-woocommerce_thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dgbt-secondary-info {
  flex: 1;
  min-width: 0;
}
.dgbt-secondary-name {
  font-size: 11.5px;
  font-weight: 600;
  color: #0F1111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Inter', sans-serif;
  line-height: 1.3;
}
.dgbt-secondary-pricing {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 3px;
  flex-wrap: wrap;
}
.dgbt-secondary-price {
  font-size: 12px;
  font-weight: 800;
  color: #005F6B;
  font-family: 'Outfit', 'Inter', sans-serif;
}
.dgbt-secondary-orig {
  font-size: 9.5px;
  color: #94A3B8;
  text-decoration: line-through;
}
.dgbt-secondary-badge {
  font-size: 9.5px;
  font-weight: 700;
  color: #067D62;
  font-family: 'Inter', sans-serif;
}
.dgbt-secondary-btn {
  background: #005F6B !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 16px;
  padding: 6px 13px;
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
  transition: background 0.15s ease;
  line-height: 1.3;
}
.dgbt-secondary-btn:hover { background: #008296 !important; }
.dgbt-secondary-btn.dgbt-secondary-btn--loading { opacity: 0.6; pointer-events: none; }
.dgbt-secondary-btn.dgbt-secondary-btn--success { background: #067D62 !important; pointer-events: none; }

/* ── Toast notification ── */
.dgbt-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #067D62;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 22px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.20);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 999999;
  white-space: nowrap;
}
.dgbt-toast.dgbt-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Loading spinner keyframe ── */
@keyframes dgbt-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Narrow cart drawers ── */
@media (max-width: 340px) {
  .dgbt-wrap { padding: 0 10px; }
  .dgbt-offer-img { width: 54px; height: 54px; min-width: 54px; }
  .dgbt-price-now { font-size: 15px; }
  .dgbt-offer-name { font-size: 12px; }
  .dgbt-cta-btn { font-size: 12px; padding: 10px 12px; }
  .dgbt-combo-strip { padding: 5px 8px; gap: 3px; }
  .dgbt-combo-pip { width: 22px; height: 22px; min-width: 22px; }
  .dgbt-urgency-title { font-size: 11px; }
  .dgbt-urgency-badge { font-size: 8.5px; padding: 2px 7px; }
}
