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: end center;
  background: rgba(0, 0, 0, 0.22);
  padding: 1rem;
  backdrop-filter: blur(2px);
}

.cookie-consent-panel {
  width: min(620px, 100%);
  background: rgba(255, 255, 255, 0.94);
  color: #181818;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

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

.cookie-consent-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cookie-consent-text {
  margin: 0 0 0.85rem;
  color: #4e4e4e;
  line-height: 1.5;
  font-size: 0.94rem;
  max-width: 58ch;
}

.cookie-consent-options {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1rem;
}

.cookie-consent-option {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.8rem 0.9rem;
  background: #f6f4f1;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
}

.cookie-consent-option input[type="checkbox"] {
  margin: 0.15rem 0 0;
  inline-size: 15px;
  block-size: 15px;
  accent-color: #111;
}

.cookie-consent-option__title {
  display: block;
  font-weight: 700;
  margin-bottom: 0.15rem;
  font-size: 0.95rem;
  line-height: 1.2;
}

.cookie-consent-option__text {
  display: block;
  color: #5d5d5d;
  font-size: 0.88rem;
  line-height: 1.45;
}

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

.cookie-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: 0.94rem;
  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: #111;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.cookie-btn--primary:hover {
  background: #1a1a1a;
}

.cookie-btn--secondary {
  background: #ece9e4;
  color: #181818;
}

.cookie-btn--secondary:hover {
  background: #e3dfd9;
}

.cookie-btn--ghost {
  background: transparent;
  color: #181818;
  border: 1px solid rgba(0, 0, 0, 0.14);
}

.cookie-btn--ghost:hover {
  border-color: rgba(0, 0, 0, 0.26);
  background: rgba(0, 0, 0, 0.025);
}

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

.consent-placeholder {
  padding: 1.1rem;
  border-radius: 18px;
  background: #f6f4f1;
  color: #181818;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.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: #555;
  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: 18px;
  }

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

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

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

  .cookie-consent-option {
    padding: 0.72rem 0.78rem;
    border-radius: 14px;
  }

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

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