.cookie-consent,
.cookie-consent * {
  box-sizing: border-box;
}

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

.cookie-consent {
  position: fixed;
  z-index: 99999;
  left: 50%;
  bottom: 16px;
  width: min(calc(100% - 32px), 1160px);
  padding: 12px 14px 12px 18px;
  transform: translateX(-50%);
  overflow: hidden;
  border: 1px solid rgba(91, 165, 168, 0.3);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 34px rgba(18, 48, 74, 0.2);
  color: #526777;
  font-family: Ubuntu, Arial, sans-serif;
}

.cookie-consent::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #5ba5a8;
  content: "";
}

.cookie-consent__row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cookie-consent__text {
  flex: 1 1 auto;
  font-size: 12px;
  line-height: 1.45;
}

.cookie-consent__text a {
  color: #24734d !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__button,
.cookie-consent__inline-button {
  font-family: inherit;
  cursor: pointer;
}

.cookie-consent__button {
  flex: 0 0 112px;
  min-height: 38px;
  padding: 8px 18px;
  border: 1px solid #5ba5a8;
  border-radius: 10px;
  background: #5ba5a8;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
  border-color: #24734d;
  background: #24734d;
}

.cookie-consent__button:active {
  transform: translateY(1px);
}

.cookie-consent__inline-button {
  display: none;
}

@media (max-width: 639px) {
  .cookie-consent {
    position: static;
    width: 100%;
    padding: 6px 10px 7px;
    transform: none;
    border: 0;
    border-bottom: 1px solid rgba(91, 165, 168, 0.3);
    border-radius: 0;
    background: #eef8f8;
    box-shadow: none;
  }

  .cookie-consent::before {
    display: none;
  }

  .cookie-consent__row {
    display: block;
  }

  .cookie-consent__text {
    color: #5f707d;
    font-size: 11px;
    line-height: 1.25;
  }

  .cookie-consent__button {
    display: none;
  }

  .cookie-consent__inline-button {
    display: inline;
    margin: 0 0 0 2px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #24734d;
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent__button {
    transition: none;
  }
}
