html.has-cookie-modal-open,
html.has-cookie-modal-open body {
  overflow: hidden;
}

.cookie-consent-modal[hidden] {
  display: none !important;
}

.cookie-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(38, 54, 51, 0.22);
  padding: 1rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cookie-consent-panel {
  width: min(560px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: rgba(251, 250, 246, 0.97);
  color: var(--text, #263633);
  border: 1px solid var(--line, rgba(58, 72, 67, 0.14));
  border-radius: 18px;
  box-shadow: 0 18px 54px rgba(38, 54, 51, 0.18);
}

.cookie-consent-panel__inner {
  padding: 1rem;
}

.cookie-consent-title {
  margin: 0 0 0.4rem;
  color: var(--text, #263633);
  font-size: 1.08rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0;
}

.cookie-consent-text {
  margin: 0 0 0.8rem;
  color: var(--muted, #6f7c78);
  line-height: 1.55;
  font-size: 0.92rem;
  max-width: 58ch;
}

.cookie-consent-options {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}

.cookie-consent-option {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.7rem 0.78rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line, rgba(58, 72, 67, 0.14));
  border-radius: 12px;
}

.cookie-consent-option input[type="checkbox"] {
  margin: 0.18rem 0 0;
  inline-size: 14px;
  block-size: 14px;
  accent-color: var(--accent, #4f9587);
}

.cookie-consent-option__title {
  display: block;
  color: var(--text, #263633);
  font-weight: 600;
  margin-bottom: 0.15rem;
  font-size: 0.92rem;
  line-height: 1.2;
}

.cookie-consent-option__text {
  display: block;
  color: var(--muted, #6f7c78);
  font-size: 0.84rem;
  line-height: 1.45;
}

.cookie-consent-link {
  display: inline-flex;
  margin: 0 0 0.8rem;
  color: var(--accent2, #39776d);
  font-size: 0.86rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.cookie-btn {
  appearance: none;
  border: 1px solid var(--line, rgba(58, 72, 67, 0.14));
  border-radius: 999px;
  padding: 0.68rem 0.9rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease,
    border-color 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

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

.cookie-btn--primary {
  background: rgba(79, 149, 135, 0.14);
  border-color: rgba(79, 149, 135, 0.32);
  color: var(--accent2, #39776d);
}

.cookie-btn--primary:hover {
  background: rgba(79, 149, 135, 0.2);
}

.cookie-btn--secondary {
  background: rgba(234, 223, 206, 0.45);
  border-color: rgba(58, 72, 67, 0.16);
  color: var(--text, #263633);
}

.cookie-btn--secondary:hover {
  background: rgba(234, 223, 206, 0.65);
}

.cookie-btn--ghost {
  background: rgba(255, 255, 255, 0.5);
  color: var(--text, #263633);
}

.cookie-btn--ghost:hover {
  border-color: rgba(79, 149, 135, 0.28);
  background: rgba(255, 255, 255, 0.78);
}

.cookie-manage-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.consent-placeholder {
  padding: 1.1rem;
  border-radius: 18px;
  background: var(--bg-soft, #fbfaf6);
  color: var(--text, #263633);
  border: 1px solid var(--line, rgba(58, 72, 67, 0.14));
}

.consent-placeholder__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  line-height: 1.2;
}

.consent-placeholder__text {
  margin: 0 0 0.85rem;
  line-height: 1.5;
  color: var(--muted, #6f7c78);
  font-size: 0.94rem;
}

.consent-loaded-content iframe {
  display: block;
  width: 100%;
  border: 0;
}

@media (max-width: 640px) {
  .cookie-consent-modal {
	padding: 0.75rem;
	align-items: end;
  }

  .cookie-consent-panel {
	width: 100%;
	border-radius: 16px;
  }

  .cookie-consent-panel__inner {
	padding: 0.9rem;
  }

  .cookie-consent-title {
    font-size: 1rem;
  }

  .cookie-consent-text {
    font-size: 0.9rem;
  }

  .cookie-consent-option {
	padding: 0.68rem 0.72rem;
	border-radius: 12px;
  }

  .cookie-consent-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-btn {
    width: 100%;
    justify-content: center;
  }
}
