.cookie-consent {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 999998;
  display: flex;
  gap: 16px;
  align-items: center;
  max-width: min(680px, calc(100vw - 32px));
  padding: 18px;
  color: #fff;
  background: rgba(0, 0, 0, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}

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

.cookie-consent p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.cookie-consent a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.cookie-consent__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.cookie-consent button {
  min-height: 42px;
  padding: 10px 16px;
  color: #fff;
  font: inherit;
  font-weight: 700;
  background: transparent;
  border: 1px solid #fff;
  border-radius: 5px;
  cursor: pointer;
}

.cookie-consent button:hover,
.cookie-consent button:focus-visible,
.cookie-consent a:focus-visible {
  color: #000;
  background: #fff;
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.country-gate {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
}

.country-gate__dialog {
  max-width: 90%;
  padding: 30px;
  color: #fff;
  text-align: center;
  background: #000;
  border: 1px solid #fff;
  border-radius: 10px;
  font-size: 20px;
}

.country-gate__dialog p {
  margin: 0 0 20px;
  font-weight: 700;
}

.country-gate__dialog button {
  margin: 10px;
  padding: 12px 25px;
  color: #fff;
  font-size: 16px;
  background: transparent;
  border: 2px solid #fff;
  border-radius: 5px;
  cursor: pointer;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.country-gate__dialog button:hover,
.country-gate__dialog button:focus-visible {
  color: #000;
  background: #fff;
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .cookie-consent {
    right: 12px;
    bottom: 12px;
    left: 12px;
    flex-direction: column;
    align-items: stretch;
    max-width: none;
  }

  .cookie-consent__actions {
    width: 100%;
  }

  .cookie-consent button {
    flex: 1 1 0;
  }
}
