.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1004;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 1.2rem 1.2rem;
  font-family: 'Geologica', sans-serif;
}

.cookie-consent:not([hidden]) {
  pointer-events: auto;
}

.cookie-consent__panel {
  width: 100%;
  max-width: 56rem;
  background: #fff;
  border: 1px solid var(--border-color, #d5d5d5);
  border-radius: 1.2rem;
  box-shadow: 0 0.4rem 2.4rem rgba(0, 0, 0, 0.12);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  pointer-events: auto;
}

.cookie-consent__title {
  font-size: clamp(1.8rem, 2.2vw, 2.2rem);
  font-weight: 600;
  color: var(--main-text-color, #000);
  margin: 0 0 1rem;
  line-height: 1.3;
}

.cookie-consent__text {
  font-size: clamp(1.3rem, 1.6vw, 1.5rem);
  font-weight: 300;
  color: var(--gray-hard, #474747);
  line-height: 1.55;
  margin: 0 0 1.6rem;
}

.cookie-consent__link {
  color: var(--accent-color, #ef9325);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.cookie-consent__link:hover {
  text-decoration: none;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-consent__btn {
  flex: 1 1 14rem;
  min-height: 4.4rem;
  padding: 0.8rem 1.6rem;
  font-family: inherit;
  font-size: clamp(1.3rem, 1.5vw, 1.5rem);
  font-weight: 500;
  border-radius: 0.8rem;
  cursor: pointer;
  border: 1px solid var(--border-color, #d5d5d5);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.cookie-consent__btn--secondary {
  background: #fff;
  color: var(--main-text-color, #000);
}

.cookie-consent__btn--secondary:hover {
  background: #f7f7f7;
  border-color: var(--gray-medium, #737373);
}

.cookie-consent__btn--primary {
  background: var(--accent-color, #ef9325);
  color: #fff;
  border-color: var(--accent-color, #ef9325);
}

.cookie-consent__btn--primary:hover {
  filter: brightness(1.05);
}

body.cookie-consent-open {
  padding-bottom: clamp(14rem, 22vh, 20rem);
}

@media (max-width: 480px) {
  .cookie-consent__actions {
    flex-direction: column;
  }

  .cookie-consent__btn {
    flex: 1 1 auto;
    width: 100%;
  }
}
