/* Seasonal promotion (inc/promo.php, assets/js/promo.js), the tiered-pricing.com module in Multicurrency's blue.
   Plain CSS: the Tailwind build does not see these classes. Shown only when the inline switch puts .mcp-live /
   .mcp-bar-on on <html>. Look: flat Black Friday black, the site's own blue button, Inter. */
:root {
	--mcp-black: #111114;
	--mcp-line: #2e2e35;
	--mcp-muted: #a1a1aa;
	--mcp-soft: #d4d4d8;
	--mcp-blue: #1d63b8;
	--mcp-blue-hover: #2a74cc;
	--mcp-tint: #7cc8f2;
	--mcp-bar-h: 0px;
	--mcp-bar-now: 0px;
}

/* ---- layout: while the bar shows, the header (bar + navigation) is fixed and the page moves down by its full
   height; the slim bar never changes that, so nothing jumps ---- */
html.mcp-bar-on [data-mcw-header] { position: fixed; top: 0; left: 0; right: 0; }
html.mcp-bar-on body { padding-top: calc(var(--mcp-bar-h) + 4rem + 1px); }
/* anchors land under the slim bar: any jump far enough to need one turns the bar slim on the way */
html.mcp-bar-on { scroll-padding-top: 56px; }
@media screen and (min-width: 783px) { html.mcp-bar-on body.admin-bar [data-mcw-header] { top: 32px; } }
@media screen and (min-width: 601px) and (max-width: 782px) { html.mcp-bar-on body.admin-bar [data-mcw-header] { top: 46px; } }
@media (min-width: 1024px) {
	html.mcp-bar-on .mcw-toc { top: calc(var(--mcp-bar-now) + 6rem); max-height: calc(100vh - 7rem - var(--mcp-bar-now)); }
}

/* ---- the bar ----
   Wide screens: name and offer, countdown, plan picker with the Black Friday price and a buy button, in one row.
   Narrower screens: the picker opens as a dropdown under the bar ("Choose plan").
   Scrolled down (.mcp-slim): one slim row with the dropdown button; full again at the top of the page. */
.mcp-bar[hidden] { display: none; }
.mcp-bar { position: relative; z-index: 30; background: var(--mcp-black); color: #fff; font-size: 15px; line-height: 1.3; }
.mcp-bar p { margin: 0; }
.mcp-bar__inner { max-width: 88rem; min-height: 84px; margin: 0 auto; padding: 10px 64px 10px 24px; display: flex; align-items: center; gap: 28px; box-sizing: border-box; }
.mcp-bar__head { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mcp-bar__name { color: var(--mcp-tint); font-size: 15px; font-weight: 700; white-space: nowrap; }
.mcp-bar__offer { color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.mcp-bar__ends { order: 1; display: flex; flex-direction: column; gap: 2px; color: var(--mcp-muted); font-size: 13px; white-space: nowrap; }
.mcp-bar__clock { color: #fff; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mcp-bar__deal { order: 2; margin-left: auto; display: flex; align-items: center; gap: 20px; }
.mcp-bar__picker { display: flex; gap: 10px; }
.mcp-seg { display: inline-flex; padding: 3px; border: 1px solid #3f3f46; border-radius: 10px; background: #1c1c21; }
.mcp-seg button { min-height: 44px; padding: 0 13px; border: 0; border-radius: 7px; background: none; color: var(--mcp-soft); font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background-color .12s, color .12s; }
.mcp-seg button:hover { color: #fff; }
.mcp-seg button[aria-checked="true"] { background: #fff; color: var(--mcp-black); }
.mcp-bar__price { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.mcp-bar__price s { color: var(--mcp-muted); font-size: 15px; }
.mcp-bar__price strong { color: #fff; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mcp-bar__price span { color: var(--mcp-muted); font-size: 14px; }
.mcp-bar__buy { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 10px; background: var(--mcp-blue); color: #fff !important; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background-color .15s; }
.mcp-bar__buy:hover { background: var(--mcp-blue-hover); }
.mcp-bar__toggle { order: 3; display: none; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin-left: auto; padding: 0 16px; border: 0; border-radius: 10px; background: var(--mcp-blue); color: #fff; font: inherit; font-size: 15px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.mcp-bar__toggle:hover { background: var(--mcp-blue-hover); }
.mcp-bar__toggle svg { width: 16px; height: 16px; transition: transform .15s; }
html.mcp-open .mcp-bar__toggle svg { transform: rotate(180deg); }
.mcp-bar__close { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--mcp-muted); cursor: pointer; }
.mcp-bar__close:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.mcp-bar__close svg { width: 16px; height: 16px; }
.mcp-bar :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* the picker as a dropdown (.mcp-fold): whenever the one-row layout does not fit (narrow screens, longer
   translations; decided by the inline switch and promo.js), and in the slim bar */
.mcp-bar__offer { white-space: nowrap; }
.mcp-bar__inner > * { flex-shrink: 0; } /* one row: nothing squeezes, so an overflow means "fold" */
html.mcp-fold .mcp-bar__offer { white-space: normal; }
html.mcp-fold .mcp-bar__head { flex-shrink: 1; }
html.mcp-slim .mcp-bar__head { flex-shrink: 1; min-width: 0; }
html.mcp-slim .mcp-bar__offer { overflow: hidden; text-overflow: ellipsis; }
html.mcp-fold .mcp-bar__inner { min-height: 72px; gap: 24px; }
html.mcp-fold .mcp-bar__ends { order: 0; }
html.mcp-fold .mcp-bar__toggle { display: inline-flex; }
html.mcp-fold .mcp-bar__deal,
html.mcp-slim .mcp-bar__deal { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 18px 24px 22px; flex-wrap: wrap; justify-content: center; gap: 16px 24px; background: var(--mcp-black); border-top: 1px solid var(--mcp-line); box-shadow: 0 16px 30px rgba(0, 0, 0, .25); }
html.mcp-fold.mcp-open .mcp-bar__deal,
html.mcp-slim.mcp-open .mcp-bar__deal { display: flex; }
html.mcp-slim .mcp-bar__inner { min-height: 56px; padding-top: 6px; padding-bottom: 6px; gap: 20px; }
html.mcp-slim .mcp-bar__head { flex-direction: row; align-items: baseline; gap: 10px; }
html.mcp-slim .mcp-bar__offer { font-size: 16px; }
html.mcp-slim .mcp-bar__ends { order: 0; flex-direction: row; align-items: baseline; gap: 6px; }
html.mcp-slim .mcp-bar__clock { font-size: 16px; }
html.mcp-slim .mcp-bar__toggle { display: inline-flex; padding: 0 14px; font-size: 14px; }

@media (max-width: 1023px) {
	.mcp-bar__offer { font-size: 18px; }
	.mcp-bar__clock { font-size: 18px; }
}
/* phones: name, countdown, and a full-width "Choose plan" button under them; slim = one row with a small button */
@media (max-width: 640px) {
	.mcp-bar__inner { flex-wrap: wrap; gap: 8px 12px; padding: 10px 52px 12px 14px; min-height: 0; }
	html.mcp-fold .mcp-bar__inner { min-height: 0; gap: 8px 12px; }
	.mcp-bar__head { flex: 1; }
	.mcp-bar__name { font-size: 13px; }
	.mcp-bar__offer { font-size: 16px; }
	.mcp-bar__ends { align-items: flex-end; font-size: 12px; }
	.mcp-bar__clock { font-size: 16px; }
	.mcp-bar__toggle { width: 100%; margin: 0; }
	.mcp-bar__close { top: 8px; transform: none; right: 4px; }
	.mcp-bar__deal, html.mcp-fold .mcp-bar__deal, html.mcp-slim .mcp-bar__deal { padding: 16px 14px 18px; gap: 14px; }
	.mcp-bar__picker { flex-wrap: wrap; justify-content: center; }
	html.mcp-slim .mcp-bar__inner { flex-wrap: nowrap; padding: 6px 52px 6px 14px; }
	html.mcp-slim .mcp-bar__offer, html.mcp-slim .mcp-bar__ends-label { display: none; }
	html.mcp-slim .mcp-bar__close { top: 50%; transform: translateY(-50%); }
	html.mcp-slim .mcp-bar__toggle { width: auto; margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { .mcp-bar *, .mcp-bar *::before { transition: none !important; } }

/* ---- the offer block above the pricing cards ---- */
.mcp-offer { display: none; }
html.mcp-live .mcp-offer { display: grid; }
.mcp-offer { grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; max-width: 64rem; margin: 40px auto 0; padding: 36px 40px; border-radius: 16px; background: var(--mcp-black); color: #fff; text-align: left; box-shadow: 0 18px 40px -18px rgba(15, 23, 42, .45); }
.mcp-offer p { margin: 0; }
.mcp-offer__name { margin-bottom: 6px !important; color: var(--mcp-tint); font-size: 15px; font-weight: 700; }
.mcp-offer__title { margin: 0 0 10px; color: #fff; font-size: 30px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.mcp-offer__text { max-width: 46ch; color: var(--mcp-soft); font-size: 16px; line-height: 1.55; }
.mcp-offer__timer { display: flex; }
.mcp-unit { display: flex; flex-direction: column; align-items: center; min-width: 4.2rem; padding: 0 18px; border-left: 1px solid var(--mcp-line); }
.mcp-unit:first-child { padding-left: 0; border-left: 0; }
.mcp-unit:last-child { padding-right: 0; }
.mcp-unit__n { font-size: 36px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; }
.mcp-unit__l { margin-top: 6px; font-size: 13px; color: var(--mcp-muted); }
@media (max-width: 860px) {
	.mcp-offer { grid-template-columns: 1fr; gap: 28px; padding: 28px 22px; margin-top: 32px; }
	.mcp-offer__title { font-size: 25px; }
	.mcp-offer__timer { padding-top: 22px; border-top: 1px solid var(--mcp-line); }
	.mcp-unit { min-width: 0; padding: 0 14px; }
	.mcp-unit__n { font-size: 28px; }
}

/* ---- discounted prices on the pricing cards (promo.js) ---- */
.mcp-was-line { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.mcp-was { font-size: 1.125rem; font-weight: 600; color: #64748b; text-decoration: line-through; text-decoration-thickness: 2px; }
.mcp-deal { padding: 3px 7px 2px; border-radius: 5px; background: var(--mcp-black); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.mcp-save-line { display: block; }

.mcp-save { display: inline-block; margin-top: 10px; padding: 5px 10px; border-radius: 8px; background: #dcfce7; color: #065f46; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
