.cookie-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: auto;
  z-index: 10000;
  display: grid;
  gap: 12px;
  width: min(470px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
  overflow: auto;
  padding: 16px;
  color: #182127;
  background: rgba(255, 250, 244, 0.98);
  border: 1px solid rgba(24, 33, 39, 0.14);
  border-radius: 16px;
  box-shadow: 0 18px 46px rgba(10, 20, 30, 0.18);
}

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

.cookie-consent__title {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.35rem;
  line-height: 1.1;
}

.cookie-consent__text {
  margin: 0;
  color: #4b5963;
  font-size: 0.92rem;
  line-height: 1.45;
}

.cookie-consent__link,
.cookie-settings-link {
  color: #7a542e;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.cookie-settings-link {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-consent__button {
  border: 1px solid rgba(24, 33, 39, 0.18);
  border-radius: 999px;
  padding: 9px 13px;
  color: #182127;
  background: #ffffff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.cookie-consent__button:hover,
.cookie-consent__button:focus {
  border-color: rgba(122, 84, 46, 0.7);
  outline: none;
}

.cookie-consent__button--primary {
  border-color: #182127;
  color: #fffaf4;
  background: #182127;
}

.cookie-consent__panel {
  display: grid;
  gap: 8px;
}

.cookie-consent__choice {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(24, 33, 39, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.68);
}

.cookie-consent__choice strong,
.cookie-consent__choice span {
  display: block;
}

.cookie-consent__choice span {
  margin-top: 2px;
  color: #5c6872;
  font-size: 0.84rem;
  line-height: 1.35;
}

.cookie-consent__toggle {
  width: 18px;
  height: 18px;
  accent-color: #182127;
}

@media (max-width: 620px) {
  .cookie-consent {
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    max-height: min(76dvh, 620px);
    padding: 14px;
    border-radius: 14px 14px 12px 12px;
  }

  .cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
  }

  .cookie-consent__button {
    flex: 1 1 135px;
    padding: 9px 11px;
  }

  .cookie-consent__title {
    font-size: 1.2rem;
  }

  .cookie-consent__text {
    font-size: 0.88rem;
  }
}
