/* Trust blocks above the order button (1.5.9) - the VividHome product page
   sidebar 1:1: .vh-pay, .vh-free-ship--block, .trust-ticker and
   .shipping-urgency from the theme's page-product.css / components.css,
   renamed vv-* and scoped to .vv-root so the plugin owns them on any theme.
   Markup: includes/trust.php; country/date half: assets/js/trust.js. */
.vv-root .vv-trust {
  --vv-t-sand: var(--vh-sand, #EDE7DF);
  --vv-t-ink: var(--vh-ink, #1A1715);
  --vv-t-charcoal: var(--vh-charcoal, #4A4440);
  --vv-t-font: var(--vh-font-body, 'Onest', system-ui, -apple-system, sans-serif);
  --vv-t-purple: var(--vivid-purple, #7C3AED);
  --vv-t-gradient: var(--vivid-gradient-main, linear-gradient(135deg, #2563EB, #7C3AED, #DB2777));
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  font-family: var(--vv-t-font);
  text-align: left;
}
.vv-root .vv-trust [hidden] { display: none !important; }

/* a. How you pay */
.vv-root .vv-pay {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px 14px;
  border: 1.5px solid var(--vv-t-sand);
  border-radius: 14px;
  background: #fff;
}
.vv-root .vv-pay__row { display: flex; align-items: center; gap: 10px; }
.vv-root .vv-pay__ic {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.vv-root .vv-pay__row--cod .vv-pay__ic { background: #E8F7F0; color: #059669; }
.vv-root .vv-pay__row--card .vv-pay__ic { background: #FFF4EC; color: #C4623A; }
.vv-root .vv-pay__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.vv-root .vv-pay__title { font-size: 13.5px; font-weight: 700; color: var(--vv-t-ink); line-height: 1.3; }
.vv-root .vv-pay__text small { font-size: 12px; color: var(--vv-t-charcoal); line-height: 1.35; }

/* b. Free delivery, no minimum (BG/RO) - the truck drives, the ring pulses */
.vv-root .vv-free-line { margin: 0; }
.vv-root .vv-free-ship {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px 8px 8px;
  border-radius: 12px;
  background: #E8F7EE;
  border: 1px solid #A7E3BF;
  color: #157A3C;
  font-size: 14px;
  line-height: 1.35;
}
.vv-root .vv-free-ship__icon {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #16A34A;
  color: #fff;
}
.vv-root .vv-free-ship__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, .55);
  animation: vv-free-ship-pulse 1.8s ease-out infinite;
}
.vv-root .vv-free-ship__icon svg {
  width: 16px;
  height: 16px;
  color: #fff;
  animation: vv-free-ship-drive 1.2s ease-in-out infinite;
}
.vv-root .vv-free-ship__title { font-size: 15px; font-weight: 800; letter-spacing: .02em; color: #15803D; }
.vv-root .vv-free-ship__sub { color: #166534; }
@keyframes vv-free-ship-drive {
  0%, 100% { transform: translateX(-1.5px) rotate(0deg); }
  25%      { transform: translateX(1.5px) rotate(-3deg); }
  50%      { transform: translateX(2.5px) rotate(0deg); }
  75%      { transform: translateX(0) rotate(2deg); }
}
@keyframes vv-free-ship-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(22, 163, 74, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* c. Promise ticker */
@keyframes vv-ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.vv-root .vv-ticker {
  overflow: hidden;
  padding: 10px 0;
  border-top: 1px solid var(--vv-t-sand);
  border-bottom: 1px solid var(--vv-t-sand);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.vv-root .vv-ticker__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: vv-ticker-scroll 12s linear infinite;
}
.vv-root .vv-ticker:hover .vv-ticker__track { animation-play-state: paused; }
.vv-root .vv-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  color: var(--vv-t-charcoal);
  letter-spacing: 0.01em;
}
.vv-root .vv-ticker__item svg { flex-shrink: 0; color: var(--vv-t-purple); }
.vv-root .vv-ticker__sep {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  font-size: 10px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--vv-t-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* d. Ships within | Delivery */
.vv-root .vv-urgency {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(27,58,140,0.04), rgba(123,45,142,0.06), rgba(212,27,107,0.04));
  border: 1px solid rgba(123,45,142,0.10);
  font-size: 12px;
  color: var(--vv-t-charcoal);
  line-height: 1;
}
.vv-root .vv-urgency__ship,
.vv-root .vv-urgency__countdown {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  justify-content: center;
}
.vv-root .vv-urgency__text { line-height: 1.4; text-align: center; }
.vv-root .vv-urgency__text strong { display: inline-block; font-size: 1.05em; }
.vv-root .vv-urgency svg { flex-shrink: 0; color: var(--vv-t-purple); }
.vv-root .vv-urgency__ship strong { font-weight: 700; color: var(--vv-t-ink); }
.vv-root .vv-urgency__courier:empty { display: none; }
.vv-root .vv-urgency__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--vv-t-purple);
  opacity: 0.4;
  flex-shrink: 0;
}
@keyframes vv-countdown-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
.vv-root .vv-countdown-value {
  display: inline-block;
  font-weight: 700;
  background: var(--vv-t-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: vv-countdown-pulse 2s ease-in-out infinite;
}

@media (max-width: 767px) {
  .vv-root .vv-ticker { padding: 8px 0; }
  .vv-root .vv-ticker__item { font-size: 11px; }
  .vv-root .vv-ticker__sep { padding: 0 10px; font-size: 8px; }
  .vv-root .vv-urgency { gap: 8px; padding: 8px 12px; }
  .vv-root .vv-urgency__ship,
  .vv-root .vv-urgency__countdown { gap: 8px; }
  .vv-root .vv-urgency svg { width: 18px; height: 18px; }
  .vv-root .vv-urgency__text { font-size: 11px; line-height: 1.3; }
}
@media (prefers-reduced-motion: reduce) {
  .vv-root .vv-free-ship__icon::after,
  .vv-root .vv-free-ship__icon svg,
  .vv-root .vv-countdown-value { animation: none; }
}
