/* === COOKIE CONSENT BANNER === */

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #2D1F13;
  color: #fff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

#cookie-banner.visible {
  transform: translateY(0);
}

#cookie-banner p {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin: 0;
  flex: 1;
  min-width: 200px;
}

#cookie-banner a {
  color: #E8845E;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-btn {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}

.cookie-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.cookie-btn-accept {
  background: #C4633A;
  color: #fff;
}

.cookie-btn-reject {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.3);
}

.cookie-btn-settings {
  background: transparent;
  color: rgba(255,255,255,0.5);
  border: none;
  font-size: 13px;
  padding: 10px 12px;
  text-decoration: underline;
}

/* Modal */
#cookie-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#cookie-modal.open {
  display: flex;
}

.cookie-modal-box {
  background: #FFFCF8;
  border-radius: 16px;
  padding: 36px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.cookie-modal-box h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.3rem;
  color: #2D1F13;
  margin-bottom: 12px;
}

.cookie-modal-box p {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  color: #5C3D22;
  margin-bottom: 24px;
  line-height: 1.7;
}

.cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid #E8D5C0;
}

.cookie-toggle-info strong {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  color: #2D1F13;
  display: block;
  margin-bottom: 2px;
}

.cookie-toggle-info span {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px;
  color: #9C7A5E;
}

.toggle-wrap {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-wrap input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: #E8D5C0;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.3s;
}

.toggle-wrap input:checked + .toggle-slider {
  background: #C4633A;
}

.toggle-wrap input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.toggle-wrap input:disabled + .toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.cookie-modal-buttons .cookie-btn {
  flex: 1;
  text-align: center;
}

/* Nastavení cookies link v patičce */
#cookie-settings-link {
  cursor: pointer;
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  text-decoration: underline;
  background: none;
  border: none;
  font-family: 'DM Sans', system-ui, sans-serif;
  padding: 0;
}

#cookie-settings-link:hover {
  color: rgba(255,255,255,0.7);
}

@media (max-width: 600px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-modal-box {
    padding: 24px;
  }
}
