/* Cookie consent banner — Mahorčič / Hotel Josefina
   Scoped to #mahorcic-cookie-banner. Uses site design tokens from tokens.css. */

#mahorcic-cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9900; /* below site-menu (10000), above all content */
  padding: 16px clamp(20px, 4vw, 48px);
  gap: 20px;
  align-items: center;

  background: rgba(10, 11, 10, 0.90);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  border-top: 1px solid rgba(239, 231, 210, 0.12);
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.55),
              inset 0 1px 0 rgba(255, 255, 255, 0.06);

  color: var(--color-cream);
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.55;
}

#mahorcic-cookie-banner.mcb-visible {
  display: flex;
  flex-direction: row;
}

/* ── Text block ──────────────────────────────────── */
.mcb-text {
  flex: 1;
  min-width: 0;
}

.mcb-title {
  display: block;
  font-family: var(--font-semi-condensed);
  font-weight: var(--fw-semibold);
  font-size: 13px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-cream);
  margin-bottom: 4px;
}

.mcb-body {
  color: var(--color-cream-dim);
}

.mcb-link {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.mcb-link:hover {
  color: var(--color-cream);
}

/* ── Button group ────────────────────────────────── */
.mcb-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-items: center;
}

.mcb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 22px;
  border-radius: 100px;
  border: 0;
  font-family: var(--font-semi-condensed);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

/* Accept all — gold pill */
.mcb-btn--accept {
  background: var(--color-gold);
  color: var(--color-bg);
}

.mcb-btn--accept:hover {
  background: var(--color-cream);
  transform: translateY(-1px);
}

/* Necessary only — ghost */
.mcb-btn--necessary {
  background: transparent;
  color: var(--color-cream-dim);
  border: 1px solid rgba(239, 231, 210, 0.22);
}

.mcb-btn--necessary:hover {
  border-color: rgba(239, 231, 210, 0.44);
  color: var(--color-cream);
}

/* ── Mobile ──────────────────────────────────────── */
@media (max-width: 640px) {
  #mahorcic-cookie-banner.mcb-visible {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px;
    gap: 14px;
  }

  .mcb-actions {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .mcb-btn {
    width: 100%;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mcb-btn { transition: none; }
}
