/* "Твоята Black Friday оферта" (pkg-bf-bundle, 2026-11-05).
   Owner's direction: it must NOT blend into the site — bright orange with ink,
   on purpose outside the petrol palette. The colours live only here. */

.ck-bf {
  --bf-orange: #FF5B14;
  --bf-orange-soft: #FFE1CF;
  --bf-orange-text: #B83A08;
  --bf-orange-line: #E8480C;
  --bf-card: #FFF4EC;
  --bf-ink: #161A1B;
  --bf-ink-soft: rgba(22, 26, 27, .78);
  --bf-white: #FFFFFF;
  margin: 32px 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--bf-ink);
}
.ck-bf[hidden] { display: none; }
.ck-bf h2, .ck-bf h3 { font-family: Manrope, Inter, sans-serif; color: var(--bf-ink); }

.ck-bf-frame { background: var(--bf-ink); border-radius: 20px; padding: 4px; }
.ck-bf-inner { background: var(--bf-orange); border-radius: 16px; padding: 32px 36px; display: flex; flex-direction: column; gap: 22px; }

.ck-bf-head { background: none; position: static; backdrop-filter: none; border: 0; box-shadow: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.ck-bf-titles { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.ck-bf-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.ck-bf-titles h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 800; }
.ck-bf-titles p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--bf-ink-soft); }

.ck-bf-timer { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ck-bf-timer > span { font-size: 13px; font-weight: 600; }
.ck-bf-clock { display: flex; gap: 6px; font-family: Manrope, Inter, sans-serif; font-variant-numeric: tabular-nums; min-height: 58px; }
.ck-bf-clock-cell { display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 8px 6px; border-radius: 10px; background: var(--bf-ink); }
.ck-bf-clock-cell b { font-size: 26px; font-weight: 800; color: var(--bf-white); line-height: 1; }
.ck-bf-clock-cell small { font-size: 11px; color: #FF8A57; margin-top: 4px; }

.ck-bf-body { display: flex; gap: 24px; align-items: flex-start; }
.ck-bf-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.ck-bf-set-head, .ck-bf-picker-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ck-bf-set-head h3, .ck-bf-picker-head h3 { margin: 0; font-size: 18px; font-weight: 800; }
.ck-bf-set-head span, .ck-bf-picker-head span { font-size: 13px; font-weight: 600; }
.ck-bf-set { display: flex; flex-direction: column; gap: 10px; }

.ck-bf-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ck-bf-slot { position: relative; min-height: 196px; box-sizing: border-box; border-radius: 12px; }
.ck-bf-slot.is-filled { background: var(--bf-white); border: 3px solid var(--bf-ink); padding: 8px; display: flex; flex-direction: column; gap: 8px; animation: ck-bf-in .28s cubic-bezier(.2,.8,.2,1); }
.ck-bf-slot.is-filled .ck-bf-look { flex-direction: column; align-items: stretch; gap: 8px; }
.ck-bf-slot.is-filled img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: var(--bf-white); }
.ck-bf-slot-text { display: flex; flex-direction: column; gap: 3px; }
.ck-bf-slot.is-empty { border: 2px dashed var(--bf-ink); background: rgba(255, 255, 255, .35); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 700; line-height: 1.3; text-align: center; padding: 10px; }
.ck-bf-slot.is-optional { border-color: rgba(22, 26, 27, .45); background: transparent; }
.ck-bf-kind { font-size: 11px; font-weight: 700; color: var(--bf-orange-text); }
.ck-bf-name { font-size: 13px; line-height: 1.3; font-weight: 600; color: var(--bf-ink); }
.ck-bf-price { font-family: Manrope, Inter, sans-serif; font-size: 15px; font-weight: 800; color: var(--bf-ink); }
.ck-bf-x { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--bf-ink); color: var(--bf-white); display: flex; align-items: center; justify-content: center; cursor: pointer; }

.ck-bf-picker { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 14px; background: var(--bf-card); border: 2px solid var(--bf-ink); }
.ck-bf-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.ck-bf-tab { min-height: 40px; padding: 8px 14px; border: 0; border-radius: 99px; font: 700 13px Inter, sans-serif; cursor: pointer; background: var(--bf-white); color: var(--bf-ink); box-shadow: inset 0 0 0 1.5px var(--bf-ink); }
.ck-bf-tab[aria-selected="true"] { background: var(--bf-ink); color: var(--bf-white); box-shadow: none; }
.ck-bf-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; max-height: 420px; overflow: auto; }
.ck-bf-item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: var(--bf-white); border: 1px solid rgba(22, 26, 27, .18); }
.ck-bf-look { all: unset; box-sizing: border-box; cursor: pointer; flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; border-radius: 10px; }
.ck-bf-look:hover .ck-bf-name, .ck-bf-look:focus-visible .ck-bf-name { text-decoration: underline; text-underline-offset: 3px; }
.ck-bf-look:focus-visible { outline: 3px solid var(--bf-ink); outline-offset: 3px; }
.ck-bf-item img { width: 72px; height: 72px; flex-shrink: 0; object-fit: contain; border-radius: 8px; background: var(--bf-white); transition: transform .2s ease; }
.ck-bf-look:hover img { transform: scale(1.06); }
.ck-bf-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ck-bf-more { font-size: 12px; font-weight: 700; color: var(--bf-orange-text); }
.ck-bf-add { flex-shrink: 0; min-height: 40px; padding: 8px 14px; border: 0; border-radius: 8px; font: 700 13px Inter, sans-serif; cursor: pointer; background: var(--bf-ink); color: var(--bf-white); }
.ck-bf-add:disabled { background: rgba(22, 26, 27, .12); color: rgba(22, 26, 27, .55); cursor: default; }
.ck-bf-empty { margin: 0; font-size: 14px; color: var(--bf-ink-soft); }

.ck-bf-summary { width: 320px; flex-shrink: 0; box-sizing: border-box; display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 14px; background: var(--bf-card); border: 2px solid var(--bf-ink); position: sticky; top: 96px; }
.ck-bf-seal { align-self: center; position: relative; width: 150px; height: 150px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #7A3A1C; box-shadow: 0 0 0 5px var(--bf-card), 0 0 0 8px #7A3A1C; transform: rotate(-8deg); transition: transform .35s cubic-bezier(.2,.8,.2,1), background-color .2s; margin: 6px 0 4px; }
.ck-bf-seal::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 1px dashed var(--bf-orange); opacity: .7; }
.ck-bf-seal.is-on { background: var(--bf-ink); box-shadow: 0 0 0 5px var(--bf-card), 0 0 0 8px var(--bf-ink); animation: ck-bf-stamp .38s cubic-bezier(.2,.8,.2,1); }
.ck-bf-seal.is-big { transform: rotate(-8deg) scale(1.06); }
.ck-bf-seal-pct { font-family: Manrope, Inter, sans-serif; font-weight: 800; font-size: 44px; letter-spacing: -0.03em; line-height: 1; color: var(--bf-orange); }
.ck-bf-seal-sub { font-size: 12px; font-weight: 600; color: var(--bf-white); margin-top: 4px; }
.ck-bf-hint { margin: 0; text-align: center; font-size: 13px; line-height: 1.45; color: var(--bf-ink-soft); }
.ck-bf-pricebox { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; border-top: 1px solid rgba(22, 26, 27, .2); }
.ck-bf-was, .ck-bf-now { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ck-bf-was > span, .ck-bf-now > span { font-size: 13px; font-weight: 700; text-transform: none; color: var(--bf-ink-soft); }
.ck-bf-strike { position: relative; text-decoration: none; white-space: nowrap; font-family: Manrope, Inter, sans-serif; font-size: 26px; font-weight: 800; color: rgba(22, 26, 27, .5); padding: 0 2px; }
.ck-bf-strike::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 4px; border-radius: 2px; background: var(--bf-orange-line); transform: rotate(-9deg); }
.ck-bf-now strong { white-space: nowrap; font-family: Manrope, Inter, sans-serif; font-size: 48px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; color: var(--bf-ink); }
.ck-bf-pricebox.is-waiting .ck-bf-now strong { font-size: 32px; color: rgba(22, 26, 27, .7); }
.ck-bf-save { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bf-ink); color: var(--bf-white); font-size: 15px; font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; animation: ck-bf-in .3s cubic-bezier(.2,.8,.2,1); }
.ck-bf-save b { font-family: Manrope, Inter, sans-serif; font-size: 24px; font-weight: 800; color: var(--bf-orange); white-space: nowrap; }
.ck-bf-cta { min-height: 52px; padding: 15px 18px; border: 0; border-radius: 12px; font: 800 16px Manrope, Inter, sans-serif; cursor: pointer; background: var(--bf-ink); color: var(--bf-white); }
.ck-bf-cta:hover:not(:disabled) { background: #000000; }
.ck-bf-cta:disabled { background: rgba(22, 26, 27, .18); color: rgba(22, 26, 27, .6); cursor: not-allowed; }
.ck-bf-fine { margin: -4px 0 0; font-size: 12px; line-height: 1.45; color: rgba(22, 26, 27, .7); }

.ck-bf button:focus-visible { outline: 3px solid var(--bf-ink); outline-offset: 3px; }

@keyframes ck-bf-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ck-bf-stamp { 0% { transform: rotate(-8deg) scale(1.25); } 100% { transform: rotate(-8deg) scale(1); } }

@media (max-width: 980px) {
  .ck-bf-inner { padding: 22px 16px; }
  .ck-bf-body { flex-direction: column; }
  .ck-bf-summary { width: 100%; position: static; }
  .ck-bf-timer { align-items: flex-start; }
  .ck-bf-slots { grid-template-columns: 1fr; }
  .ck-bf-slot { min-height: 0; }
  .ck-bf-slot.is-filled { flex-direction: row; align-items: center; padding: 8px 48px 8px 8px; }
  .ck-bf-slot.is-filled .ck-bf-look { flex-direction: row; align-items: center; }
  .ck-bf-slot.is-filled img { width: 64px; height: 64px; flex-shrink: 0; }
  .ck-bf-slot.is-empty { flex-direction: row; min-height: 52px; }
  .ck-bf-x { top: 50%; transform: translateY(-50%); width: 40px; height: 40px; }
  .ck-bf-list { grid-template-columns: 1fr; max-height: none; }
  .ck-bf-tab, .ck-bf-add { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .ck-bf-slot.is-filled, .ck-bf-seal.is-on, .ck-bf-save { animation: none; }
  .ck-bf-look:hover img { transform: none; }
  .ck-bf-seal { transition: none; }
}

/* The notice dialog and the cart badge/banner. */
.ck-bf-notice { border: 0; padding: 0; border-radius: 18px; max-width: min(460px, calc(100vw - 32px)); background: transparent; }
.ck-bf-notice::backdrop { background: rgba(22, 26, 27, .55); }
.ck-bf-notice-box { background: #FF5B14; border: 4px solid #161A1B; border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 12px; color: #161A1B; font-family: Inter, system-ui, sans-serif; }
.ck-bf-notice-box h2 { margin: 0; font: 800 22px/1.2 Manrope, Inter, sans-serif; }
.ck-bf-notice-box p { margin: 0; font-size: 15px; line-height: 1.5; }
.ck-bf-notice-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ck-bf-btn-primary, .ck-bf-btn-ghost { min-height: 44px; padding: 10px 16px; border-radius: 10px; font: 700 14px Inter, sans-serif; cursor: pointer; }
.ck-bf-btn-primary { border: 0; background: #161A1B; color: #FFFFFF; }
.ck-bf-btn-ghost { border: 2px solid #161A1B; background: #FFF4EC; color: #161A1B; }
.ck-cart-bf-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 3px 9px; border-radius: 99px; background: #FF5B14; color: #161A1B; font-size: 12px; font-weight: 700; }
.ck-cart-bf-banner { margin: 0 0 12px; padding: 14px 16px; border-radius: 12px; background: #FFF4EC; border: 2px solid #FF5B14; color: #161A1B; display: flex; flex-direction: column; gap: 8px; }
.ck-cart-bf-banner strong { font: 800 15px Manrope, Inter, sans-serif; }
.ck-cart-bf-banner p { margin: 0; font-size: 14px; line-height: 1.45; }
.ck-cart-bf-banner div { display: flex; flex-wrap: wrap; gap: 8px; }
