/* Cafepoint – Vianočná ponuka pre firmy 2026 | plávajúci banner na spodku stránky
   Farby sú prevzaté z vianočného katalógu (tmavá petrolejová + zlatá). */

#cpx-xmas {
  --cpx-bg-1: #00262a;
  --cpx-bg-2: #003538;
  --cpx-bg-3: #0d4a4f;
  --cpx-gold: #dba832;
  --cpx-gold-hover: #e9bd52;
  --cpx-ink: #00302f;
  --cpx-text: rgba(255, 255, 255, .78);

  position: fixed;
  z-index: 9000;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 900px;
  margin: 0 auto;
  font-family: "Google Sans", Poppins, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.3;
  text-align: left;
  color: #fff;
  transform: translateY(calc(100% + 48px));
  opacity: 0;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .4s ease, bottom .3s ease;
}
#cpx-xmas.cpx-in { transform: none; opacity: 1; }
#cpx-xmas.cpx-in.cpx-away { transform: translateY(calc(100% + 48px)); opacity: 0; pointer-events: none; }
#cpx-xmas *, #cpx-xmas *::before, #cpx-xmas *::after { box-sizing: border-box; }

#cpx-xmas .cpx-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(90% 160% at 88% 0%, rgba(20, 96, 102, .55) 0%, rgba(20, 96, 102, 0) 60%),
    linear-gradient(100deg, var(--cpx-bg-1) 0%, var(--cpx-bg-2) 55%, var(--cpx-bg-3) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(219, 168, 50, .35),
    0 22px 44px -14px rgba(0, 18, 20, .6),
    0 4px 12px rgba(0, 18, 20, .25);
}

#cpx-xmas .cpx-link {
  all: unset;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 22px;
  padding-right: 60px;
  cursor: pointer;
  color: #fff;
  text-decoration: none !important;
}
#cpx-xmas .cpx-link:focus-visible { outline: 2px solid var(--cpx-gold); outline-offset: -4px; border-radius: 18px; }

#cpx-xmas .cpx-media {
  position: relative;
  flex: 0 0 176px;
  align-self: stretch;
  min-height: 112px;
  -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 62%, transparent 100%);
}
#cpx-xmas .cpx-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 30% 22%;
}

#cpx-xmas .cpx-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 18px 0;
}
#cpx-xmas .cpx-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cpx-gold);
}
#cpx-xmas .cpx-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.15;
  color: #fff;
}
#cpx-xmas .cpx-title em { font-style: normal; color: var(--cpx-gold); }
#cpx-xmas .cpx-text { font-size: 14px; color: var(--cpx-text); }

#cpx-xmas .cpx-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--cpx-gold);
  color: var(--cpx-ink);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 18px -8px rgba(219, 168, 50, .75);
  transition: background-color .2s ease, transform .2s ease;
}
#cpx-xmas .cpx-cta svg { transition: transform .2s ease; }
#cpx-xmas .cpx-link:hover .cpx-cta { background: var(--cpx-gold-hover); transform: translateY(-1px); }
#cpx-xmas .cpx-link:hover .cpx-cta svg { transform: translateX(3px); }

#cpx-xmas .cpx-close {
  all: unset;
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .08);
  transition: background-color .2s ease, color .2s ease;
}
#cpx-xmas .cpx-close:hover { color: #fff; background: rgba(255, 255, 255, .18); }
#cpx-xmas .cpx-close:focus-visible { outline: 2px solid var(--cpx-gold); outline-offset: 2px; }

/* zlaté vločky ako v katalógu */
#cpx-xmas .cpx-flake {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  color: var(--cpx-gold);
  opacity: .45;
  animation: cpx-twinkle 3.2s ease-in-out infinite alternate;
}
#cpx-xmas .cpx-flake svg { display: block; width: 100%; height: 100%; }
#cpx-xmas .cpx-flake--1 { width: 20px; height: 20px; top: 12px; right: 250px; }
#cpx-xmas .cpx-flake--2 { width: 13px; height: 13px; bottom: 14px; right: 212px; animation-delay: -1.2s; }
#cpx-xmas .cpx-flake--3 { width: 16px; height: 16px; bottom: 12px; right: 44px; animation-delay: -2.1s; }

@keyframes cpx-twinkle {
  from { opacity: .2; transform: rotate(0deg) scale(.9); }
  to   { opacity: .6; transform: rotate(30deg) scale(1); }
}

/* tablet */
@media (max-width: 820px) {
  #cpx-xmas .cpx-text { display: none; }
  #cpx-xmas .cpx-media { flex-basis: 140px; min-height: 96px; }
  #cpx-xmas .cpx-title { font-size: 19px; }
  #cpx-xmas .cpx-flake--1, #cpx-xmas .cpx-flake--2 { display: none; }
}

/* mobil */
@media (max-width: 600px) {
  #cpx-xmas { left: 10px; right: 10px; bottom: 10px; }
  #cpx-xmas .cpx-card, #cpx-xmas .cpx-link:focus-visible { border-radius: 16px; }
  #cpx-xmas .cpx-link { gap: 12px; padding-right: 14px; }
  #cpx-xmas .cpx-media { flex-basis: 88px; min-height: 84px; }
  #cpx-xmas .cpx-body { padding: 12px 0; gap: 3px; }
  #cpx-xmas .cpx-eyebrow { font-size: 10px; letter-spacing: .12em; }
  #cpx-xmas .cpx-eyebrow-more { display: none; }
  #cpx-xmas .cpx-title { font-size: 16px; }
  #cpx-xmas .cpx-cta { width: 44px; height: 44px; padding: 0; justify-content: center; }
  #cpx-xmas .cpx-cta-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
  #cpx-xmas .cpx-close {
    top: -10px;
    right: -6px;
    width: 28px;
    height: 28px;
    color: #fff;
    background: var(--cpx-bg-1);
    box-shadow: inset 0 0 0 1px rgba(219, 168, 50, .6), 0 4px 10px rgba(0, 0, 0, .3);
  }
  #cpx-xmas .cpx-close:hover { background: var(--cpx-bg-2); }
  #cpx-xmas .cpx-flake--3 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  #cpx-xmas, #cpx-xmas * { transition: none !important; animation: none !important; }
}
@media print { #cpx-xmas { display: none !important; } }
