/* Cookie Consent — DrStone.cz / Google Consent Mode v2 */
:root {
  --cookie-primary: #d4a373;
  --cookie-primary-dark: #b8814a;
  --cookie-primary-light: #e9ddc9;
}

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 600px;
  z-index: 10000;
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  color: #f8fafc;
  background: rgba(27, 29, 33, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: cookieSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.4s ease;
}

@keyframes cookieSlideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-banner-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.cookie-content { width: 100%; }

.cookie-banner .cookie-text {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: center;
}

.cookie-banner .cookie-text a {
  color: var(--cookie-primary-light);
  font-weight: 600;
  text-decoration: underline;
}

.cookie-banner .cookie-text a:hover { color: #fff; }

.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.cookie-btn {
  padding: 10px 18px;
  color: #fff;
  font: 700 0.85rem/1.2 var(--font, Inter, sans-serif);
  white-space: nowrap;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cookie-btn-accept {
  color: #1b1d21;
  background: var(--cookie-primary);
}

.cookie-btn-accept:hover {
  background: var(--cookie-primary-dark);
  transform: translateY(-1px);
}

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

.cookie-btn-reject:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.cookie-btn-settings {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-btn-settings:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.cookie-settings-panel {
  width: 100%;
  margin-top: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-settings-panel[hidden] { display: none; }

.cookie-settings-title {
  margin-bottom: 16px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.cookie-settings-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.cookie-option {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.cookie-switch-label {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
}

.cookie-switch-label input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cookie-switch-custom {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: 38px;
  height: 20px;
  margin-top: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  transition: background 0.3s ease;
}

.cookie-switch-custom::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.cookie-switch-label input:focus-visible + .cookie-switch-custom {
  outline: 2px solid var(--cookie-primary-light);
  outline-offset: 3px;
}

.cookie-switch-label input:checked + .cookie-switch-custom {
  background: var(--cookie-primary);
}

.cookie-switch-label input:checked + .cookie-switch-custom::after {
  transform: translateX(18px);
}

.cookie-switch-label input:disabled + .cookie-switch-custom {
  cursor: not-allowed;
  opacity: 0.55;
}

.cookie-option-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cookie-option-name {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
}

.cookie-option-desc {
  color: #94a3b8;
  font-size: 0.75rem;
  line-height: 1.4;
}

.cookie-services-list {
  display: block;
  margin-top: 6px;
  color: var(--cookie-primary-light);
  font-size: 0.72rem;
  line-height: 1.35;
}

.cookie-services-list:empty { display: none; }

.cookie-settings-actions {
  display: flex;
  justify-content: flex-end;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

@media (max-width: 768px) {
  .cookie-banner {
    bottom: 80px;
    left: 16px;
    right: 16px;
    gap: 16px;
    padding: 20px;
  }

  .cookie-banner-main { gap: 12px; }
  .cookie-banner .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1 1 auto; }
}

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