.cv-consent {
  position: fixed;
  z-index: 4000;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  width: min(470px, calc(100vw - 36px));
  padding: 22px;
  border: 1px solid rgba(14, 93, 97, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  color: #173f42;
  box-shadow: 0 24px 70px rgba(8, 48, 51, 0.25);
  font-family: Inter, system-ui, sans-serif;
}

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

.cv-consent span {
  color: #0e5d61;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cv-consent h2 {
  margin: 6px 0 8px;
  font-family: Newsreader, Georgia, serif;
  font-size: 1.8rem;
  line-height: 1.1;
}

.cv-consent p {
  margin: 0;
  color: #526b6d;
  font-size: 0.84rem;
  line-height: 1.55;
}

.cv-consent a {
  color: #0e5d61;
  font-weight: 700;
}

.cv-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 17px;
}

.cv-consent-actions button,
.cv-cookie-settings {
  min-height: 44px;
  border: 1px solid rgba(14, 93, 97, 0.34);
  border-radius: 999px;
  padding: 9px 15px;
  background: #fff;
  color: #0e5d61;
  font: 750 0.78rem/1.2 Inter, system-ui, sans-serif;
  cursor: pointer;
}

.cv-consent-actions button {
  flex: 1;
}

.cv-consent-actions .is-primary {
  border-color: #0e5d61;
  background: #0e5d61;
  color: #fff;
}

.cv-cookie-settings {
  min-height: auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 560px) {
  .cv-consent {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    padding: 18px;
  }
}
