.cookie-consent {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999999;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(520px, calc(100% - 32px));
  padding: 16px;
  border: 1px solid rgba(60, 77, 107, 0.12);
  border-radius: 12px;
  background: #ffffff;
  color: var(--akudinov-color-text, #3c4d6b);
  box-shadow: 0 12px 36px rgba(36, 52, 78, 0.18);
  font-family: inherit;
}

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

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

.cookie-consent__text a {
  color: #126e47;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.cookie-consent__button {
  box-sizing: border-box;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid #126e47;
  border-radius: var(--akudinov-radius-control, 10px);
  background: #126e47;
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.cookie-consent__button:hover {
  border-color: #0f5b3a;
  background: #0f5b3a;
}

.cookie-consent__button:focus-visible,
.cookie-consent__text a:focus-visible {
  outline: 2px solid #126e47;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(18, 110, 71, 0.25);
}

@media (max-width: 600px) {
  .cookie-consent {
    right: 12px;
    bottom: 12px;
    left: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: auto;
    padding: 14px;
  }

  .cookie-consent__text {
    font-size: 13px;
  }

  .cookie-consent__button {
    width: 100%;
  }
}
