/* Cookie consent + one-time English suggestion. Fixed bars: no document flow, no layout shift.
   Colors come from the theme tokens in site.css (light / dark / noir). */

.consent-bar,
.lang-suggest {
  position: fixed;
  z-index: 90;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  color: var(--ink);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: "Kalameh", Tahoma, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0;
}

.lang-suggest { z-index: 91; }

.consent-bar p,
.lang-suggest p {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink);
}

.consent-actions,
.lang-suggest-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
}

.consent-bar button,
.lang-suggest button,
.lang-suggest a {
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.4;
  letter-spacing: 0;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.consent-accept,
.lang-suggest-go {
  background: var(--btn-bg);
  color: var(--btn-ink);
  border: 1px solid transparent;
}

.consent-accept:hover,
.lang-suggest-go:hover { background: var(--btn-bg-2); }

.consent-reject,
.lang-suggest-stay {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.consent-reject:hover,
.lang-suggest-stay:hover { background: var(--surface-2); }

.consent-bar button:focus-visible,
.lang-suggest button:focus-visible,
.lang-suggest a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .consent-bar,
  .lang-suggest {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .consent-actions,
  .lang-suggest-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .consent-bar button,
  .lang-suggest button,
  .lang-suggest a { white-space: normal; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .consent-bar,
  .lang-suggest { transition: none; }
}

@media print {
  .consent-bar,
  .lang-suggest { display: none !important; }
}


/* mobile-home-15: keep cookie bar shorter so hero CTAs stay reachable */
@media (max-width: 640px) {
  .consent-bar {
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    font-size: .9rem;
    line-height: 1.45;
    gap: 6px;
  }
  .consent-bar p { font-size: .88rem; }
  .consent-bar button {
    min-height: 40px;
    padding: 6px 10px;
    font-size: .88rem;
  }
}
