.cookie-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  width: min(460px, calc(100% - 24px));
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.cookie-consent.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cookie-consent__panel {
  padding: 20px 20px 18px;
  border-radius: 18px;
  background: rgba(19, 31, 46, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
  color: #f4f7fa;
}

.cookie-consent__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.cookie-consent__text {
  margin: 0;
  color: rgba(244, 247, 250, 0.88);
  font-size: 14px;
  line-height: 1.75;
}

.cookie-consent__text a {
  color: #ffd56a;
  text-decoration: none;
}

.cookie-consent__text a:hover {
  text-decoration: underline;
}

.cookie-consent__note {
  margin-top: 12px;
  color: rgba(244, 247, 250, 0.72);
  font-size: 12px;
  line-height: 1.6;
}

.cookie-consent__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.cookie-consent__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.cookie-consent__button--ghost {
  border-color: rgba(244, 247, 250, 0.28);
  background: transparent;
  color: #f4f7fa;
}

.cookie-consent__button--primary {
  background: #ffd56a;
  color: #1f2732;
}

[data-cookie-open] {
  cursor: pointer;
}

@media (max-width: 640px) {
  .cookie-consent {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 12px;
  }

  .cookie-consent__panel {
    padding: 18px 16px 16px;
    border-radius: 16px;
  }

  .cookie-consent__actions {
    justify-content: stretch;
  }

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