/* Checkout offer countdown (offer-timer.js). Palette "Дълбок петрол":
   deep petrol body, champagne ring and button. One entrance, a draining ring,
   a light sweep on the button, a warmer pulse in the last 20 seconds. */
.ck-otimer {
  --ot-deep: #0B2B30;
  --ot-petrol: #123E44;
  --ot-soft: #1F5A61;
  --ot-champ: #B8955A;
  --ot-champ-light: #C8A86E;
  --ot-bone: #F6F4EF;
  position: fixed;
  left: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 860;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: min(470px, calc(100vw - 40px));
  padding: 12px 14px 12px 12px;
  border-radius: 22px;
  color: var(--ot-bone);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(200, 168, 110, .30), transparent 46%),
    radial-gradient(90% 120% at 100% 100%, rgba(31, 90, 97, .85), transparent 60%),
    linear-gradient(135deg, var(--ot-deep), var(--ot-petrol));
  border: 1px solid rgba(200, 168, 110, .38);
  box-shadow: 0 22px 50px rgba(11, 43, 48, .34), 0 2px 0 rgba(255, 255, 255, .06) inset;
  font-family: Inter, system-ui, sans-serif;
}
.ck-otimer, .ck-otimer * { font-feature-settings: "locl" 0 !important; box-sizing: border-box; }
.ck-otimer[hidden] { display: none !important; }
.ck-otimer.is-in { animation: ckOtimerIn .62s cubic-bezier(.16, .84, .24, 1.12) both; }
.ck-otimer.is-leaving { animation: ckOtimerOut .3s ease-in both; }
@keyframes ckOtimerIn { from { opacity: 0; transform: translateY(26px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes ckOtimerOut { to { opacity: 0; transform: translateY(16px) scale(.97); } }

/* The dial: a champagne ring around the percent. */
.ck-otimer-dial {
  position: relative;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .10), rgba(11, 43, 48, .6) 70%);
  cursor: default;
}
.ck-otimer-dial svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ck-otimer-track { fill: none; stroke: rgba(246, 244, 239, .12); stroke-width: 4.5; }
.ck-otimer-arc { fill: none; stroke-width: 4.5; stroke-linecap: round; transition: stroke-dashoffset .9s cubic-bezier(.3, .7, .2, 1); filter: drop-shadow(0 0 4px rgba(200, 168, 110, .55)); }
.ck-otimer-bezel line { stroke: rgba(246, 244, 239, .16); stroke-width: 1; stroke-linecap: round; transition: stroke .4s ease; }
.ck-otimer-bezel line.is-long { stroke-width: 1.6; }
.ck-otimer-bezel line.is-lit { stroke: rgba(232, 205, 150, .85); }
.ck-otimer-head { transform-origin: 36px 36px; transition: transform .9s cubic-bezier(.3, .7, .2, 1); }
.ck-otimer-head circle:first-child { animation: ckOtimerSpark 1.6s ease-in-out infinite; transform-origin: 61px 36px; }
@keyframes ckOtimerSpark { 0%, 100% { opacity: .7; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.25); } }
.ck-otimer-pct { position: relative; font: 800 15px/1 Manrope, Inter, system-ui, sans-serif; letter-spacing: -.02em; color: #fff; }

.ck-otimer-copy { display: grid; gap: 2px; min-width: 0; }
.ck-otimer-kicker { font-size: 11.5px; font-weight: 600; color: rgba(246, 244, 239, .72); }
.ck-otimer-time { display: block; overflow: hidden; height: 32px; font: 800 30px/32px Manrope, Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.ck-otimer-digits {
  display: inline-block;
  background: linear-gradient(180deg, #F3E3BE, var(--ot-champ-light) 60%, var(--ot-champ));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ck-otimer-digits.is-roll { animation: ckOtimerRoll .32s cubic-bezier(.2, .8, .2, 1); }
@keyframes ckOtimerRoll { from { transform: translateY(38%); opacity: .25; } to { transform: none; opacity: 1; } }
.ck-otimer-save { font-size: 12.5px; font-weight: 600; color: var(--ot-bone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-otimer-save[hidden] { display: none; }

/* The button: the one bright thing, with a sweep of light every few seconds. */
.ck-otimer-cta {
  position: relative;
  overflow: hidden;
  align-self: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #E2C892, var(--ot-champ-light) 45%, var(--ot-champ));
  color: var(--ot-deep);
  font: 800 14px/1 Manrope, Inter, system-ui, sans-serif;
  letter-spacing: -.01em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(184, 149, 90, .38), 0 1px 0 rgba(255, 255, 255, .45) inset;
  transition: transform .18s ease, box-shadow .18s ease;
}
.ck-otimer-cta::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent);
  transform: skewX(-18deg);
  animation: ckOtimerSheen 5.5s ease-in-out 1.2s infinite;
}
@keyframes ckOtimerSheen { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.ck-otimer-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(184, 149, 90, .48), 0 1px 0 rgba(255, 255, 255, .45) inset; }
.ck-otimer-cta:focus-visible, .ck-otimer-dial:focus-visible, .ck-otimer-min:focus-visible { outline: 3px solid #F3E3BE; outline-offset: 3px; }
.ck-otimer-cta-text { position: relative; z-index: 1; }

.ck-otimer-min {
  position: absolute;
  top: -10px;
  right: -10px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(200, 168, 110, .45);
  border-radius: 50%;
  background: var(--ot-deep);
  color: var(--ot-bone);
  cursor: pointer;
}
.ck-otimer-min svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.ck-otimer-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The last 20 seconds: the ring glows warmer, the digits turn white. */
.ck-otimer.is-ending { border-color: rgba(232, 205, 150, .7); }
.ck-otimer.is-ending .ck-otimer-dial { animation: ckOtimerPulse 1s ease-in-out infinite; }
.ck-otimer.is-ending .ck-otimer-digits { background: none; color: #fff; }
@keyframes ckOtimerPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(200, 168, 110, .0); } 50% { box-shadow: 0 0 0 7px rgba(200, 168, 110, .28); } }

/* Minimised: just the dial with the time, tap to open again. */
.ck-otimer.is-min { grid-template-columns: auto auto; width: auto; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; }
.ck-otimer.is-min .ck-otimer-dial { width: 54px; height: 54px; cursor: pointer; }
.ck-otimer.is-min .ck-otimer-pct { font-size: 12px; }
.ck-otimer.is-min .ck-otimer-kicker,
.ck-otimer.is-min .ck-otimer-save,
.ck-otimer.is-min .ck-otimer-cta,
.ck-otimer.is-min .ck-otimer-min { display: none; }
.ck-otimer.is-min .ck-otimer-time { height: 26px; font-size: 22px; line-height: 26px; }

/* Expired: quiet, then gone. */
.ck-otimer.is-expired { background: #E6ECE9; color: #161A1B; border-color: rgba(18, 62, 68, .14); box-shadow: 0 14px 34px rgba(11, 43, 48, .16); }
.ck-otimer.is-expired .ck-otimer-kicker { color: #161A1B; font-size: 13px; font-weight: 800; }
.ck-otimer.is-expired .ck-otimer-save { color: #5A615F; white-space: normal; }
.ck-otimer.is-expired .ck-otimer-time,
.ck-otimer.is-expired .ck-otimer-cta,
.ck-otimer.is-expired .ck-otimer-min { display: none; }
.ck-otimer.is-expired .ck-otimer-dial { background: #fff; }
.ck-otimer.is-expired .ck-otimer-track { stroke: rgba(18, 62, 68, .12); }
.ck-otimer.is-expired .ck-otimer-pct { color: #5A615F; text-decoration: line-through; }
.ck-otimer.is-expired .ck-otimer-head, .ck-otimer.is-expired .ck-otimer-arc { display: none; }

/* Phones: a bar along the bottom, clear of the floating cart on the right. */
@media (max-width: 640px) {
  .ck-otimer { left: 10px; right: 84px; width: auto; bottom: max(14px, env(safe-area-inset-bottom)); gap: 10px; padding: 8px 10px 8px 8px; border-radius: 18px; }
  .ck-otimer-dial { width: 56px; height: 56px; }
  .ck-otimer-pct { font-size: 12.5px; }
  .ck-otimer:not(.is-expired) .ck-otimer-kicker { display: none; }
  .ck-otimer.is-expired .ck-otimer-kicker { font-size: 12px; }
  .ck-otimer-time { height: 24px; font-size: 22px; line-height: 24px; }
  .ck-otimer-save { font-size: 11px; }
  .ck-otimer-cta { min-height: 40px; padding: 0 14px; font-size: 13px; }
  .ck-otimer-min { top: -8px; right: -8px; width: 24px; height: 24px; }
  .ck-otimer.is-min { right: auto; }
}
@media (max-width: 360px) { .ck-otimer-save { display: none; } }

/* reduce-motion opt-out (html.ck-calm) */
  html.ck-calm .ck-otimer.is-in, html.ck-calm .ck-otimer.is-leaving, html.ck-calm .ck-otimer-digits.is-roll, html.ck-calm .ck-otimer.is-ending .ck-otimer-dial { animation: none; }
  html.ck-calm .ck-otimer-cta::after, html.ck-calm .ck-otimer-head circle:first-child { animation: none; }
  html.ck-calm .ck-otimer-head { transition: none; }
  html.ck-calm .ck-otimer-arc { transition: none; }

