/* Flash sales blocks — same rules as the Shopify app (theme/assets/flash-promo.css); the colour comes from the module settings. */
.flash-promo { --flash-promo-color: var(--flashsales-color, #d14545); margin: .5rem 0; font-size: .875rem; }
.flash-promo__badge { display: inline-block; padding: .1rem .4rem; border-radius: .2rem; background: var(--flash-promo-color); color: #fff; font-weight: 700; }
.flash-promo__row { display: flex; align-items: center; gap: .75rem; }
.flash-promo__counter { margin: 0; }
.flash-promo__counter strong { font-weight: 700; }
.flash-promo__pending { visibility: hidden; }
.flash-promo__bar { height: .375rem; margin-top: .4rem; border-radius: 1rem; background: #e5e5e5; overflow: hidden; }
.flash-promo__bar > span { display: block; height: 100%; background: var(--flash-promo-color); transition: width .3s; }
.flash-promo__ends { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .7rem; border: 1px solid var(--flash-promo-color); border-radius: 1rem; background: #fff; color: #222; font-size: .8125rem; line-height: 1.2; white-space: nowrap; }
.flash-promo__ends::before { content: ""; width: .7rem; height: .7rem; background: var(--flash-promo-color); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Ccircle cx='8' cy='9' r='6'/%3E%3Cpath d='M8 6v3l2 1M6 1.5h4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Ccircle cx='8' cy='9' r='6'/%3E%3Cpath d='M8 6v3l2 1M6 1.5h4'/%3E%3C/svg%3E") center / contain no-repeat; }
.flash-promo--media { position: absolute; inset: 0; z-index: 2; margin: 0; pointer-events: none; }
.flash-promo--discount { position: absolute; top: .625rem; right: .625rem; z-index: 2; margin: 0; pointer-events: none; }
.flash-promo--banner { margin: 0; }
.flash-promo__banner { display: flex; gap: 1.5rem; overflow: hidden; padding: .45rem 1rem; background: var(--flash-promo-color); color: #fff; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.flash-promo__label { position: absolute; top: .625rem; right: .625rem; padding: .15rem .45rem; border-radius: .2rem; background: var(--flash-promo-color); color: #fff; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.flash-promo--media .flash-promo__ends { position: absolute; right: .625rem; bottom: .625rem; }
.flash-promo__box { padding: 1rem 1.25rem; border: 1px solid var(--flash-promo-color); border-radius: .25rem; background: #fdf1f1; }
.flash-promo__head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .9rem; }
.flash-promo__title { color: var(--flash-promo-color); font-size: 1.15em; font-weight: 700; }
.flash-promo__head .flash-promo__ends { margin-left: auto; }
.flash-promo__box .flash-promo__bar { border: 1px solid var(--flash-promo-color); background: #fff; }
.flash-promo__prices { margin-top: .5rem; }
.flash-promo__price { margin-right: .4rem; }
.flash-promo__compare { opacity: .6; text-decoration: line-through; }
.flash-promo--product .flash-promo__prices { margin-top: 1rem; }
.flash-promo--product .flash-promo__price { font-size: 2.5em; font-weight: 500; }
.flash-promo-ended { opacity: .5; }
.flash-promo-toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 2147483647; max-width: calc(100% - 2rem); margin: 0; padding: .9rem 1.25rem; border-radius: .5rem; box-shadow: 0 8px 28px rgba(0, 0, 0, .35); font-weight: 600; transition: opacity .4s; }
.flash-promo-hidden { display: none !important; }
.flash-promo[hidden] { display: none !important; }
.flash-promo-alert { margin-top: 1rem; transition: opacity .4s; }
.flash-promo-alert--leaving { opacity: 0; }
.flash-promo-alert ul { margin: 0; padding: 0; list-style: none; }
.flash-promo-alert--inline { margin: 0 0 .75rem; padding: .75rem 1rem; font-size: .875rem; }
.modal-body > .flash-promo-alert { display: block; width: 100%; margin: 0 0 1rem; padding: .75rem 1rem; font-size: .875rem; text-align: left; }
