/* Promo block inside the native checkout form: same field/button language as the form (offer-form-input), nothing rendered while the campaign is off. */
.campaign-promo:empty { display: none; }
.campaign-promo { --promo-gap: 12px; margin: var(--promo-gap) 0; }   /* ONE gap everywhere: above, between the applied row and the status line, below */
@media (max-width: 767px) { .campaign-promo { --promo-gap: 8px; } }
.campaign-promo__label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }   /* the heading «Промокод» is not shown; kept for screen readers */
.campaign-promo__row { display: flex; gap: 8px; align-items: stretch; }
[data-checkout-form] .campaign-promo input.campaign-promo__input, .campaign-promo input.campaign-promo__input { flex: 1 1 auto; min-width: 0; box-sizing: border-box; height: 40px; min-height: 40px; padding: 0 8px; border: 1px solid #ccc; border-radius: 4px; }
.campaign-promo__apply, .campaign-promo__remove { flex: 0 0 auto; border: 0; border-radius: 4px; padding: 0 16px; height: 40px; min-height: 40px; box-sizing: border-box; font: inherit; font-size: 14px; cursor: pointer; background: #404040; color: #fff; }
.campaign-promo__apply:disabled { opacity: .5; cursor: default; }
/* applied row: no own padding and a tight line box - the visible gaps are exactly --promo-gap (the remove button keeps a 32px tap area through a pseudo-element, not through its height) */
.campaign-promo__applied { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0; font-size: 14px; line-height: 16px; color: #404040; }
.campaign-promo .campaign-promo__remove { background: transparent; color: #404040; text-decoration: underline; padding: 0 4px; height: auto; min-height: 0; line-height: 16px; position: relative; }
.campaign-promo__remove::after { content: ""; position: absolute; inset: -8px -4px; }
.campaign-promo__status { margin: var(--promo-gap) 0 0; font-size: 13px; line-height: 16px; color: #6b6b6b; min-height: 0; }
.campaign-promo__status:empty { display: none; }
.campaign-promo__status--error { color: #b3261e; }
.campaign-promo__status--ok { color: #3AC04A; }
.campaign-promo[hidden], .campaign-promo [hidden] { display: none !important; }   /* class display (flex) must never beat the [hidden] attribute: applied row vs input form */

/* checkout total with a discount: the old (before-discount) price struck through, then the new one */
.campaign-old-total { color: #8a8a8a; text-decoration: line-through; font-weight: 400; margin-right: 10px; }

/* checkout total: the CURRENT amount in #737373 like the rest of the summary (Buildin #9 supersedes the earlier «black» request); the struck-through old one stays lighter */
.checkout-summary__total [data-campaign-total], .checkout-summary__total [data-checkout-total-price] { color: #737373; }
.checkout-summary__total .campaign-old-total { color: #8a8a8a; }

/* separator colour: #e2e2e2 (Buildin cycle 2 #2 supersedes the earlier #CCCCCC) */
.checkout-summary__separator { background: #e2e2e2; }
/* the gap between the promo block and the summary is the promo block's own 12px (desktop) / 8px (mobile) - NOT margin + the summary's own margin-top */
[data-checkout-form] .campaign-promo + .checkout-summary { margin-top: 0; }
