/* Informační lišta — žádné sledovací cookies; barvy sladěné s WEB pro Salony */

html.cookie-bar-open {
  padding-bottom: 6.5rem;
}

@media (min-width: 640px) {
  html.cookie-bar-open {
    padding-bottom: 5rem;
  }
}

.cookie-bar {
  position: fixed;
  z-index: 9999;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem clamp(1rem, 4vw, 1.5rem);
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  background: #2d4739;
  color: #f5ebe0;
  box-shadow: 0 -8px 32px rgba(45, 71, 57, 0.25);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
}

.cookie-bar__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .cookie-bar__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
  }
}

.cookie-bar__text {
  margin: 0;
  flex: 1;
  max-width: 52rem;
}

.cookie-bar__text strong {
  font-weight: 600;
  color: #fffefc;
}

.cookie-bar__btn {
  flex-shrink: 0;
  align-self: flex-start;
  padding: 0.6rem 1.35rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  color: #2d4739;
  background: #fffefc;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.cookie-bar__btn:hover,
.cookie-bar__btn:focus-visible {
  background: #e3d5ca;
  outline: 2px solid #fffefc;
  outline-offset: 2px;
}

.cookie-bar__btn:active {
  transform: scale(0.98);
}

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

  .cookie-bar__btn:active {
    transform: none;
  }
}
