/* CDO Campanha: extension of canonical Tempo Limitado / Card template 1 or 2.
   All layout, radius, typography, grid, colors and price slots remain in Vitrines/LAB. */
.cdo-v-campaign .cdo-vc-card__media > .cdo-v-campaign__overlay{
  position:absolute;inset:0;z-index:1;display:block;width:100%;height:100%;
  margin:0;padding:0;border:0;border-radius:0;pointer-events:none;
  background-repeat:no-repeat;background-position:center;
  background-size:var(--cdo-campaign-overlay-fit,contain);
  transform:none;transition:none;
}
.cdo-v-campaign .cdo-vc-card__title .cdo-v-campaign__icon{
  display:inline-block;vertical-align:baseline;font-size:1em;margin-right:0;line-height:1;
}
.cdo-v-campaign[data-phase="scheduled"] .cdo-v-timed-card__track,
.cdo-v-campaign[data-phase="scheduled"] .cdo-v-timed-card__caption{
  display:none;
}
.cdo-v-campaign[data-phase="ended"]{display:none}
.cdo-v-campaign .cdo-v-timed-card__notice{flex-wrap:wrap;min-width:0}
.cdo-v-campaign .cdo-v-timed-card__label{white-space:normal}

/* BOXED is opt-in and scoped to CDO | Campanha only. */
.cdo-v-campaign .cdo-v-campaign__boxed-notice{width:100%;min-width:0;margin:0;display:flex;flex-direction:column;gap:4px}
.cdo-v-campaign .cdo-v-campaign__boxed-heading{display:flex;align-items:baseline;gap:4px;min-width:0;font-size:13px;font-weight:600;line-height:1.35;color:var(--cdo-ds-color-heading,#1f3556)}
.cdo-v-campaign .cdo-v-campaign__boxed-heading i{font-size:1em;color:var(--cdo-ds-color-brand-teal,#00d0d7);flex:none}
.cdo-v-campaign .cdo-v-campaign__boxed-heading .cdo-v-timed-card__label{white-space:normal;color:inherit}
.cdo-v-campaign .cdo-v-campaign__boxed-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;width:100%;min-width:0}
.cdo-v-campaign .cdo-v-campaign__boxed-cell{background:#000;border-radius:6px;padding:9px 2px;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;color:#fff}
.cdo-v-campaign .cdo-v-campaign__boxed-value{font-size:21px;font-weight:700;line-height:1.25;color:#fff;font-variant-numeric:tabular-nums}
.cdo-v-campaign .cdo-v-campaign__boxed-cell small{font-size:10px;font-weight:600;line-height:1.5;letter-spacing:0;color:#fff;white-space:nowrap;text-transform:uppercase}
@media(max-width:480px){.cdo-v-campaign .cdo-v-campaign__boxed-value{font-size:19px}.cdo-v-campaign .cdo-v-campaign__boxed-cell small{font-size:9px}}

/* Keep BOTH timer variants attached to the lower price zone. LAB/card markup
 * remains authoritative: transfer flexible space from price to the group,
 * leaving canonical inner body padding, gaps and price fields untouched.
 * This affects only the new CDO | Campanha, not [cdo_tempo_limitado]. */
.cdo-v-campaign .cdo-v-products .cdo-vc-card--template-2 .cdo-vc-card__body > .cdo-vc-card__timed-offer-group{
  margin-top:auto;
}
.cdo-v-campaign .cdo-v-products .cdo-vc-card--template-2 .cdo-vc-card__body > .cdo-vc-card__price{
  margin-top:0;
}
/* Template 1 has no timed-offer wrapper. Its native timed details are
 * independently anchored, without touching the template's regular cards. */
.cdo-v-campaign .cdo-v-products .cdo-vc-card__body > .cdo-v-timed-card__details{
  margin-top:auto;
}
.cdo-v-campaign .cdo-v-products .cdo-vc-card__body > .cdo-v-timed-card__details ~ .cdo-vc-card__price{
  margin-top:0;
}
/* The campaign title is semantically strong without forcing a new type scale. */
.cdo-v-campaign .cdo-v-timed-card__label .cdo-v-campaign__campaign-name{
  font-weight:800;
  color:inherit;
}
