#cookie_notification {
  left: 6.5vw;
  right: 6.5vw;
  bottom: 1.5625vw;
  width: auto;
  max-width: 1600px;
  margin: 0 auto;
  align-items: center;
  gap: 24px;
  padding: 10px 14px 10px 22px;
  transform: translateY(calc(100% + 3vw));
  pointer-events: none;
}

#cookie_notification.show {
  bottom: 1.5625vw;
  opacity: 0.96;
  transform: none;
  pointer-events: auto;
}

#cookie_notification p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

#cookie_notification .btn-primary {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  padding: 8px 22px;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 900px) {
  #cookie_notification {
    left: 8px;
    right: 8px;
    bottom: 56px;
    max-width: none;
    margin: 0;
    gap: 10px;
    padding: 8px 8px 8px 12px;
  }

  #cookie_notification.show {
    bottom: 56px;
  }

  #cookie_notification p {
    width: auto;
    font-size: 11px;
    line-height: 1.35;
  }

  #cookie_notification .btn-primary {
    width: auto;
    padding: 8px 12px;
    font-size: 12px;
  }

  body:has(#cookie_notification.show) .to-top {
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 600px) {
  #cookie_notification {
    display: block;
    padding: 8px 10px;
  }

  #cookie_notification p {
    font-size: 10px;
    line-height: 1.3;
  }

  #cookie_notification p::after {
    content: "";
    display: inline-block;
    width: 92px;
    height: 24px;
    vertical-align: middle;
  }

  #cookie_notification .btn-primary {
    position: absolute;
    right: 10px;
    bottom: 8px;
    height: 24px;
    padding: 0 12px;
    font-size: 11px;
  }
}
