/* Corner announcement card (see announce.js). Every colour, the frame and the
   corner shape arrive as --xc-* custom properties set by announce.js from what
   staff saved in the CRM (Website -> Pages & pictures -> Popup card). The
   fallbacks are the logo's own colours (palette-01.css). */
.xmas-card {
  position: fixed; right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 150;
  width: min(292px, calc(100vw - 20px));
  background: var(--xc-card-bg, #FBF7F0); color: var(--xc-text, #24313D);
  border: var(--xc-border-w, 1px) solid var(--xc-border, #D1871A);
  border-radius: var(--xc-radius, 2px 16px 2px 16px); overflow: hidden;
  box-shadow: 0 18px 40px -18px rgba(25, 62, 92, .55);
  transform: translateY(130%); opacity: 0; visibility: hidden;
}
.xmas-card.is-in { visibility: visible; animation: xmas-up .7s cubic-bezier(.2, .8, .2, 1) forwards; }
.xmas-card.is-out { animation: xmas-down .4s ease-in forwards; }
@keyframes xmas-up { to { transform: none; opacity: 1; } }
@keyframes xmas-down { from { transform: none; opacity: 1; } to { transform: translateY(130%); opacity: 0; } }

/* the four logo colours as a thin edge */
.xmas-edge { display: flex; height: 4px; }
.xmas-edge i { flex: 1; }
.xmas-edge i:nth-child(1) { background: var(--brand-1, #D1871A); }
.xmas-edge i:nth-child(2) { background: var(--brand-2, #C4451C); }
.xmas-edge i:nth-child(3) { background: var(--brand-3, #6B785C); }
.xmas-edge i:nth-child(4) { background: var(--brand-4, #2E4B75); }

.xmas-stage { display: block; width: 100%; height: auto; }
.xmas-body { padding: 10px 14px 14px; }
.xmas-body p { margin: 0 0 10px; font-size: 12.5px; line-height: 1.4; color: var(--xc-text, #24313D); }
.xmas-actions { display: flex; gap: 8px; }
.xmas-actions a {
  flex: 1; text-align: center; padding: 9px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  text-decoration: none; border: 1px solid var(--xc-secondary, #193e5c); color: var(--xc-secondary, #193e5c);
  border-radius: 2px 10px 2px 10px; transition: transform .2s ease, filter .2s ease;
}
.xmas-actions a:hover { transform: translateY(-2px); filter: brightness(.92); }
.xmas-actions a.is-main {
  background: var(--xc-primary, #C4451C); border-color: var(--xc-primary, #C4451C); color: var(--xc-primary-text, #FFF9F0);
}
.xmas-close {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 28px; height: 28px; padding: 0;
  display: grid; place-items: center; background: rgba(0, 0, 0, .45); color: #fff;
  border: 0; border-radius: 50%; font-size: 17px; line-height: 1; cursor: pointer;
}
.xmas-close:hover { background: rgba(0, 0, 0, .7); }
.xmas-card a:focus-visible, .xmas-close:focus-visible { outline: 2px solid var(--xc-accent, #D1871A); outline-offset: 2px; }

@media (max-height: 520px) { .xmas-stagewrap { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .xmas-card.is-in { animation: none; transform: none; opacity: 1; }
  .xmas-card.is-out { animation: none; display: none; }
}

/* optional round portrait beside the information text (config.photoUrl) */
.xmas-about { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.xmas-about p { margin: 0; }
.xmas-photo {
  flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 22%;
  border: 2px solid var(--xc-accent, #D1871A); background: rgba(0, 0, 0, .06);
}

/* slideshow: the stage keeps its height while slides swap; dots sit low in the stage's free centre */
.xmas-stagewrap { position: relative; }
.xmas-stagebox { display: block; }
.xmas-dots { position: absolute; left: 0; right: 0; bottom: 3px; display: flex; justify-content: center; gap: 2px; z-index: 2; }
.xmas-dot { width: 18px; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.xmas-dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; box-sizing: border-box;
  border: 1.5px solid var(--xc-accent, #D1871A); background: transparent; transition: background .2s ease, transform .2s ease;
}
.xmas-dot[aria-current="true"]::before { background: var(--xc-accent, #D1871A); transform: scale(1.15); }
.xmas-dot:hover::before { background: var(--xc-accent, #D1871A); }
.xmas-dot:focus-visible { outline: 2px solid var(--xc-accent, #D1871A); outline-offset: 0; border-radius: 50%; }
.xmas-body.is-swap { animation: xmas-fade .4s ease; }
@keyframes xmas-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .xmas-body.is-swap { animation: none; } }
