.cookie-consent-banner,
.cookie-consent-panel,
.cookie-consent-settings-link {
  font-family: inherit;
}

.cookie-consent-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px;
  color: #1f2933;
  background: #ffffff;
  border: 1px solid rgba(31, 41, 51, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
}

.cookie-consent-banner-copy {
  max-width: 680px;
}

.cookie-consent-banner h2,
.cookie-consent-panel h2 {
  margin: 0 0 8px;
  color: #1f2933;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
}

.cookie-consent-banner p,
.cookie-consent-panel p {
  margin: 0;
  color: #52616b;
  font-size: 14px;
  line-height: 1.6;
}

.cookie-consent-banner-actions,
.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-consent-primary,
.cookie-consent-secondary,
.cookie-consent-settings-link,
.cookie-consent-close {
  cursor: pointer;
  border: 0;
  font: inherit;
}

.cookie-consent-primary,
.cookie-consent-secondary {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}

.cookie-consent-primary {
  color: #ffffff;
  background: #1f7a5c;
}

.cookie-consent-secondary {
  color: #1f2933;
  background: #eef3f0;
}

.cookie-consent-primary:hover {
  background: #17664c;
}

.cookie-consent-secondary:hover {
  background: #dfe9e5;
}

.cookie-consent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.cookie-consent-links a {
  color: #1f7a5c;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: grid;
  place-items: center;
  padding: 20px;
}

.cookie-consent-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
}

.cookie-consent-panel {
  position: relative;
  width: min(100%, 640px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 24px;
  color: #1f2933;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.26);
}

.cookie-consent-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  color: #52616b;
  background: #eef3f0;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}

.cookie-consent-categories {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.cookie-consent-category {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: #f7faf8;
  border: 1px solid rgba(31, 41, 51, 0.1);
  border-radius: 8px;
}

.cookie-consent-category-copy {
  display: grid;
  gap: 4px;
}

.cookie-consent-category-copy strong {
  color: #1f2933;
  font-size: 15px;
}

.cookie-consent-category-copy span {
  color: #52616b;
  font-size: 13px;
  line-height: 1.45;
}

.cookie-consent-category input {
  width: 22px;
  height: 22px;
  accent-color: #1f7a5c;
}

.cookie-consent-settings-link {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  padding: 9px 12px;
  color: #1f2933;
  background: #ffffff;
  border: 1px solid rgba(31, 41, 51, 0.14);
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  font-size: 13px;
  font-weight: 700;
}

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

@media (max-width: 760px) {
  .cookie-consent-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: grid;
    padding: 16px;
  }

  .cookie-consent-banner-actions,
  .cookie-consent-actions {
    justify-content: stretch;
  }

  .cookie-consent-primary,
  .cookie-consent-secondary {
    flex: 1 1 100%;
  }

  .cookie-consent-panel {
    padding: 20px;
  }
}
