/* ============================================================
   Súhlas s cookies (public/js/consent.js)
   ============================================================ */

.consent-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10000;
  width: 420px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 24px 24px 20px;
  background: #fff;
  border-top: 3px solid #aa8453;
  box-shadow: 0 12px 40px rgba(34, 34, 34, 0.18);
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

.consent-title {
  margin: 0 0 8px;
  font-family: 'Gilda Display', serif;
  font-size: 22px;
  line-height: 1.3;
  color: #222;
}

.consent-text {
  margin: 0 0 16px;
  font-size: 14px;
}

.consent-text a {
  color: #aa8453;
  text-decoration: underline;
}

/* Prepínače kategórií — len v nastaveniach */
.consent-options {
  display: none;
  margin: 0 0 16px;
  border-top: 1px solid #eee3d0;
}

.consent-banner.is-settings .consent-options {
  display: block;
}

.consent-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid #eee3d0;
  cursor: pointer;
  font-weight: 400;
}

.consent-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.consent-switch {
  flex: none;
  position: relative;
  width: 38px;
  height: 22px;
  margin-top: 2px;
  border-radius: 11px;
  background: #e0d8cc;
  transition: background 0.2s;
}

.consent-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}

.consent-option input:checked + .consent-switch {
  background: #aa8453;
}

.consent-option input:checked + .consent-switch::after {
  transform: translateX(16px);
}

.consent-option input:disabled + .consent-switch {
  opacity: 0.55;
}

.consent-option input:focus-visible + .consent-switch {
  outline: 2px solid #aa8453;
  outline-offset: 2px;
}

.consent-option-text strong {
  display: block;
  color: #222;
  font-weight: 600;
  font-size: 14px;
}

.consent-option-text small {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: #777;
}

/* Tlačidlá — „Prijať“ a „Odmietnuť“ rovnako výrazné (požiadavka EDPB) */
.consent-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.consent-btn {
  flex: 1 1 auto;
  padding: 11px 16px;
  border: 1px solid #aa8453;
  border-radius: 0;
  background: #fff;
  color: #aa8453;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.consent-btn:hover,
.consent-btn:focus-visible {
  background: #aa8453;
  color: #fff;
}

.consent-btn.consent-link {
  flex: 1 1 100%;
  padding: 6px;
  border-color: transparent;
  color: #777;
  text-decoration: underline;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.consent-btn.consent-link:hover,
.consent-btn.consent-link:focus-visible {
  background: transparent;
  color: #aa8453;
}

.consent-save {
  display: none;
}

.consent-banner.is-settings .consent-save {
  display: block;
  flex: 1 1 100%;
}

.consent-banner.is-settings .consent-show-settings {
  display: none;
}

@media (max-width: 575px) {
  .consent-banner {
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    max-height: 85vh;
    padding: 20px 16px 16px;
    box-shadow: 0 -6px 24px rgba(34, 34, 34, 0.16);
  }

  .consent-title {
    font-size: 20px;
  }
}

/* ---------- Mapa na Kontakte pred súhlasom ---------- */

.consent-map {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: 32px 20px;
  background: #f6f1eb;
  text-align: center;
}

.consent-map-inner {
  max-width: 460px;
}

.consent-map-inner p {
  margin: 0 0 18px;
  font-size: 15px;
  color: #555;
}

.consent-map-inner .consent-btn {
  display: inline-block;
  flex: none;
  margin: 0 6px 10px;
}

.consent-map-inner a {
  color: #aa8453;
}

.consent-banner:focus {
  outline: none;
}
