.cookie-notice {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 9999;
  font-family: inherit;
  --cookie-accent: var(--brand-primary, var(--primary-color, #333333));
}

.cookie-notice__img {
  width: 27px;
  height: 27px;
  display: block;
  object-fit: contain;
}

.cookie-notice__trigger {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.5);
  background: #ffffff;
  color: #222222;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.cookie-notice__trigger:hover {
  transform: translateY(-1px);
  border-color: var(--cookie-accent);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.cookie-notice__panel {
  position: fixed;
  left: 18px;
  bottom: 78px;
  width: min(360px, calc(100vw - 36px));
  background: #ffffff;
  color: #252930;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);

  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.24s ease,
    opacity 0.24s ease;
}

.cookie-notice.is-open .cookie-notice__panel {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-notice__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.cookie-notice__header h2 {
  margin: 0;
  color: var(--cookie-accent);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
}

.cookie-notice__close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #555555;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.cookie-notice__close:hover {
  background: #f2f2f2;
  color: #111111;
}

.cookie-notice__panel p {
  margin: 0 0 16px;
  color: #5f646c;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-notice__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cookie-notice__link {
  color: var(--cookie-accent);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.cookie-notice__link:hover {
  text-decoration: underline;
}

.cookie-notice__ok {
  border: 1px solid var(--cookie-accent);
  border-radius: 999px;
  background: var(--cookie-accent);
  color: #ffffff;
  padding: 8px 15px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.cookie-notice__ok:hover {
  filter: brightness(0.95);
}

@media (max-width: 520px) {
  .cookie-notice {
    left: 14px;
    bottom: 14px;
  }

  .cookie-notice__panel {
    left: 14px;
    bottom: 72px;
    width: calc(100vw - 28px);
  }
}
