/* ── VM Promo Banner — Mobile-First ───────────────────────────────────────── */

#vm-promo-banner {
  width: 100%;
  background: #111;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  z-index: 99999;
  box-shadow: 0 2px 12px rgba(0,0,0,.5);
  display: none; /* shown by JS when promo is active */
}

/* ── Posição topo ─── */
#vm-promo-banner.vm-pos-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

/* ── Posição bottom bar ─── */
#vm-promo-banner.vm-pos-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}

/* Barra colorida no topo do banner */
#vm-promo-banner::before {
  content: '';
  display: block;
  height: 3px;
  width: 100%;
  background: var(--vm-bar-color, #22c55e);
}

#vm-promo-banner.vm-mega::before {
  background: linear-gradient(90deg, #f59e0b, #ef4444, #f59e0b);
  background-size: 200% 100%;
  animation: vm-shimmer 2s linear infinite;
}

@keyframes vm-shimmer {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* ── Wrapper ─── */
.vm-banner-inner {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Linha 1: badge + nome do produto ─── */
.vm-banner-row1 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vm-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.vm-badge-mini {
  background: #22c55e;
  color: #000;
}

.vm-badge-mega {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  color: #fff;
}

.vm-product-name {
  font-size: 13px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Linha 2: preço + timer ─── */
.vm-banner-row2 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.vm-price-block {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.vm-price-original {
  font-size: 11px;
  color: #888;
  text-decoration: line-through;
}

.vm-price-sale {
  font-size: 16px;
  font-weight: 800;
  color: #22c55e;
}

.vm-price-badge {
  font-size: 10px;
  font-weight: 700;
  background: #dc2626;
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
}

.vm-timer-block {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,.08);
  border-radius: 6px;
  padding: 4px 8px;
}

.vm-timer-label {
  font-size: 10px;
  color: #aaa;
}

.vm-timer {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .05em;
  color: #facc15;
}

/* ── Linha 3: cupom + CTA ─── */
.vm-banner-row3 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vm-coupon-block {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.06);
  border: 1px dashed rgba(255,255,255,.2);
  border-radius: 6px;
  padding: 5px 10px;
  flex: 1;
  min-width: 0;
}

.vm-coupon-label {
  font-size: 10px;
  color: #aaa;
  white-space: nowrap;
}

.vm-coupon-code {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #f59e0b;
  flex: 1;
  letter-spacing: .05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vm-copy-btn {
  background: none;
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}

.vm-copy-btn:hover,
.vm-copy-btn.copied {
  background: rgba(255,255,255,.15);
}

.vm-copy-btn.copied {
  color: #4ade80;
  border-color: #4ade80;
}

.vm-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #22c55e;
  color: #000 !important;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none !important;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: background .15s, transform .1s;
}

.vm-cta-btn:hover {
  background: #16a34a;
  transform: scale(1.03);
}

.vm-mega .vm-cta-btn {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff !important;
}

.vm-mega .vm-cta-btn:hover {
  background: linear-gradient(135deg, #d97706, #dc2626);
}

/* Offset do conteúdo da página para o banner não cobrir */
body.vm-banner-top-active {
  padding-top: var(--vm-banner-height, 100px) !important;
}

body.vm-banner-bottom-active {
  padding-bottom: var(--vm-banner-height, 100px) !important;
}

/* ── Desktop (min 640px) ─── */
@media (min-width: 640px) {
  .vm-banner-inner {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 10px 24px;
  }

  .vm-banner-row1,
  .vm-banner-row2,
  .vm-banner-row3 {
    all: unset;
    display: contents;
  }

  .vm-badge { display: flex; align-items: center; }

  .vm-product-name {
    font-size: 14px;
    max-width: 220px;
  }

  .vm-price-block { display: flex; }

  .vm-timer-block { margin-left: 0; }

  .vm-coupon-block { flex: none; min-width: 180px; }

  .vm-cta-btn {
    padding: 9px 20px;
    font-size: 13px;
    margin-left: auto;
  }
}
