/* Sale banner from the ACS promo feed (App_Code/AcsPromos.vb). Colours arrive per promo as
   --acs-bg, --acs-on-bg, --acs-accent and --acs-on-accent. Keep identical across sites. */

.acs-promo { clear: both; width: 100%; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 24px; padding: 18px 16px; text-align: center; background: var(--acs-bg); color: var(--acs-on-bg); font-family: inherit; line-height: 1.2; }
.acs-promo__headline, .acs-promo__subtext { color: var(--acs-accent); font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.acs-promo__discount { border-radius: 6px; padding: 4px 18px; background: var(--acs-accent); color: var(--acs-on-accent); font-size: 24px; font-weight: 900; text-transform: uppercase; }
.acs-promo__until { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.acs-promo__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acs-accent); }
.acs-promo__code { display: inline-flex; align-items: center; gap: 7px; border: 2px solid var(--acs-on-accent); border-radius: 999px; padding: 8px 22px; background: var(--acs-accent); color: var(--acs-on-accent); box-shadow: 3px 3px 0 var(--acs-on-accent); font-family: Consolas, "Courier New", monospace; font-size: 16px; font-weight: 700; line-height: 1.2; letter-spacing: 1px; white-space: nowrap; cursor: pointer; user-select: none; transition: transform 0.1s ease, box-shadow 0.1s ease; }
.acs-promo__code::before { content: '\25CB'; font-size: 11px; opacity: 0.6; }
.acs-promo__code:hover, .acs-promo__code:focus-visible { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--acs-on-accent); outline: none; }
.acs-promo__code:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--acs-on-accent); }
.acs-promo__code.is-copied { background: var(--acs-on-accent); color: var(--acs-accent); border-color: var(--acs-accent); }
.acs-promo__clip { position: fixed; top: 0; left: 0; opacity: 0; pointer-events: none; }

@media (max-width: 600px) {
    .acs-promo { gap: 8px 14px; padding: 14px 12px; }
    .acs-promo__headline, .acs-promo__subtext { font-size: 17px; }
    .acs-promo__discount { font-size: 19px; padding: 3px 12px; }
    .acs-promo__until, .acs-promo__code { font-size: 14px; }
}

/* Flair: theme icon, shine on the discount, pulsing code button and Christmas snow.
   The theme class (acs-promo--{theme}) comes from the sale in App_Code/AcsPromos.vb. */
.acs-promo { position: relative; overflow: hidden; }
.acs-promo > * { position: relative; z-index: 1; }

.acs-promo--blackfriday { --acs-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M2 2h10l10 10-10 10L2 12V2zm5 7a2 2 0 1 0 0-4 2 2 0 0 0 0 4z'/%3E%3C/svg%3E"); }
.acs-promo--cybermonday { --acs-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 1 4 14h7l-2 9 11-14h-7l1-8z'/%3E%3C/svg%3E"); }
.acs-promo--christmas { --acs-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1l5 7h-3l5 6h-3l5 6H3l5-6H5l5-6H7l5-7zM10.5 20h3v3h-3z'/%3E%3C/svg%3E"); }
.acs-promo--boxingday { --acs-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 8h9v4H2zM13 8h9v4h-9zM3 13h8v9H3zM13 13h8v9h-8zM11 7C9 3 5 2 5 4.5S8 7 11 7zM13 7c2-4 6-5 6-2.5S16 7 13 7z'/%3E%3C/svg%3E"); }

.acs-promo[class*="acs-promo--"] .acs-promo__headline::before { content: ''; display: inline-block; width: 1em; height: 1em; margin-right: 0.4em; vertical-align: -0.12em; background: currentColor; -webkit-mask: var(--acs-icon) center / contain no-repeat; mask: var(--acs-icon) center / contain no-repeat; }

.acs-promo__discount { overflow: hidden; }
.acs-promo__discount::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent); transform: skewX(-20deg); animation: acs-promo-shine 4s ease-in-out infinite; pointer-events: none; }
@keyframes acs-promo-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }

.acs-promo__code { animation: acs-promo-pulse 2.4s ease-in-out infinite; }
.acs-promo__code:hover, .acs-promo__code:focus-visible, .acs-promo__code.is-copied { animation: none; }
@keyframes acs-promo-pulse { 0%, 100% { scale: 1; } 50% { scale: 1.06; } }

.acs-promo--christmas::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: radial-gradient(circle, rgba(255, 255, 255, 0.9) 1.5px, transparent 2px), radial-gradient(circle, rgba(255, 255, 255, 0.55) 1px, transparent 1.5px), radial-gradient(circle, rgba(255, 255, 255, 0.75) 2px, transparent 2.5px); background-size: 90px 90px, 60px 60px, 130px 130px; background-position: 0 0, 25px 35px, 55px 15px; animation: acs-promo-snow 9s linear infinite; }
@keyframes acs-promo-snow { to { background-position: 0 90px, 25px 155px, 55px 145px; } }

@media (prefers-reduced-motion: reduce) {
    .acs-promo__code, .acs-promo__discount::after, .acs-promo--christmas::after { transition: none; animation: none; }
    .acs-promo__discount::after { display: none; }
}
