:root { --cpromo: #d83f8f; --cpromo-ink: #fff; }

/* Sale look + code: old price crossed out and grey, new price beside it, and a tag */
.cpromo-price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.cpromo-price del.cpromo-was, .cpromo-price del.cpromo-was .amount { color: #9a9a9a !important; font-weight: 400 !important; text-decoration: line-through !important; text-decoration-thickness: 1.5px !important; opacity: 1; font-size: .92em; background: none; }
.cpromo-price ins.cpromo-now, .cpromo-price ins.cpromo-now .amount { color: var(--cpromo) !important; font-weight: 800 !important; text-decoration: none !important; background: none; }
.cpromo-from { font-size: .8em; color: #6b6b6b; }
.cpromo-tag { display: inline-flex; align-items: center; gap: 4px; width: max-content; max-width: 100%; margin: 6px 0 2px; padding: 4px 10px; border-radius: 99px; background: var(--cpromo); color: var(--cpromo-ink) !important; font-size: 13px; font-weight: 600; line-height: 1.3; letter-spacing: .01em; white-space: nowrap; box-shadow: 0 3px 10px color-mix(in srgb, var(--cpromo) 30%, transparent); }
.cpromo-tag b { padding: 0 5px; border: 1.5px dashed currentColor; border-radius: 6px; font-weight: 800; letter-spacing: .05em; }
.cpromo-price + .cpromo-tag { display: flex; }
.summary .cpromo-tag, .product .entry-summary .cpromo-tag { font-size: 15px; padding: 6px 14px; }

/* Copy-code box under the product price */
.cpromo-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 4px; padding: 12px 12px 12px 16px; border: 2px dashed var(--cpromo); border-radius: 16px; background: color-mix(in srgb, var(--cpromo) 7%, #fff); font-size: 15px; line-height: 1.35; }
.cpromo-box__txt { display: flex; flex-direction: column; flex: 1 1 160px; min-width: 0; }
.cpromo-box__t { font-weight: 700; color: #1d1d1d; }
.cpromo-box__s { font-size: 12.5px; color: #6b6b6b; }

/* The copy button (box and banner) */
.cpromo-copy { display: inline-flex; align-items: stretch; margin: 0; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--cpromo); color: var(--cpromo-ink); font: inherit; cursor: pointer; box-shadow: 0 4px 14px color-mix(in srgb, var(--cpromo) 35%, transparent); transition: transform .15s; -webkit-tap-highlight-color: transparent; }
.cpromo-copy:active { transform: scale(.96); }
.cpromo-copy__code { padding: 9px 12px; background: #fff; color: var(--cpromo); font-weight: 800; letter-spacing: .06em; border: 2px solid var(--cpromo); border-right: 0; border-radius: 12px 0 0 12px; }
.cpromo-copy__btn { padding: 9px 14px; font-weight: 700; }
.cpromo-copy.is-done .cpromo-copy__btn::before { content: '✓ '; }

/* Footer banner */
.cpromo-bar { position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 99990; display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 24px); padding: 8px 8px 8px 16px; border-radius: 18px; background: var(--cpromo); color: var(--cpromo-ink); font-size: 14px; line-height: 1.3; box-shadow: 0 10px 30px rgba(0, 0, 0, .22); transform: translate(-50%, 140%); transition: transform .45s cubic-bezier(.2, .9, .3, 1.2); }
.cpromo-bar.is-on { transform: translate(-50%, 0); }
.cpromo-bar[hidden] { display: none; }
.cpromo-bar__txt { flex: 1 1 auto; min-width: 0; font-weight: 600; }
.cpromo-bar__txt a { color: inherit; text-decoration: underline; }
.cpromo-copy--bar { box-shadow: none; background: rgba(255, 255, 255, .18); border-radius: 12px; }
.cpromo-copy--bar .cpromo-copy__code { border-color: #fff; color: var(--cpromo); padding: 7px 10px; }
.cpromo-copy--bar .cpromo-copy__btn { padding: 7px 12px; color: var(--cpromo-ink); }
.cpromo-bar__x { flex: none; width: 30px; height: 30px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 22px; line-height: 30px; cursor: pointer; opacity: .8; }
@media (max-width: 560px) {
	.cpromo-bar { font-size: 13px; gap: 8px; padding-left: 12px; }
	.cpromo-bar__txt { white-space: normal; }
}
.cpromo-toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); z-index: 99991; padding: 9px 16px; border-radius: 99px; background: #1d1d1d; color: #fff; font-size: 13.5px; transform: translate(-50%, 10px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.cpromo-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* -30% badge */
.onsale.cpromo-badge { background: var(--cpromo); color: var(--cpromo-ink); }
@media (prefers-reduced-motion: reduce) { .cpromo-bar, .cpromo-toast, .cpromo-copy { transition: none; } }
