.cookiebar-wrap {
  box-sizing: border-box;
  z-index: 2147483000;
  display: flex;
  position: fixed;
  right: 12px;
  bottom: 16px;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100% - 24px);
  height: 60px;
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(25, 25, 26, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 32px rgba(15, 15, 15, 0.06), 0 4px 8px rgba(15, 15, 15, 0.04);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.cookiebar-wrap[hidden] {
  display: none;
}

.cookiebar-wrap.cookiebar-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookiebar-wrap.cookiebar-hiding {
  pointer-events: none;
}

.cookiebar-text {
  flex: 0 0 auto;
  margin: 0;
  padding: 0 0 0 12px;
  color: #19191a;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.cookiebar-btn {
  box-sizing: border-box;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 42px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid #19191a;
  border-radius: 999px;
  background: #19191a;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  pointer-events: auto;
  transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out, transform 0.2s ease;
}

.cookiebar-wrap.cookiebar-dark {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(38, 38, 41, 0.9);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.18), 0 4px 8px rgba(0, 0, 0, 0.12);
}

.cookiebar-wrap.cookiebar-dark .cookiebar-text {
  color: #f4f4f4;
}

.cookiebar-wrap.cookiebar-dark .cookiebar-btn {
  border-color: #f4f4f4;
  background: #f4f4f4;
  color: #19191a;
}

@media (hover: hover) and (pointer: fine) {
  .cookiebar-btn:hover {
    border-color: #2c2d2e;
    background-color: #2c2d2e;
    transform: scale(1.03);
  }

  .cookiebar-wrap.cookiebar-dark .cookiebar-btn:hover {
    border-color: #fff;
    background-color: #fff;
  }
}

.cookiebar-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

@media (min-width: 768px) and (max-width: 1279px) {
  .cookiebar-wrap {
    right: auto;
    left: 50%;
    transform: translate(-50%, 18px);
  }

  .cookiebar-wrap.cookiebar-visible {
    transform: translate(-50%, 0);
  }
}

@media (max-width: 767px) {
  .cookiebar-wrap {
    right: auto;
    bottom: 12px;
    left: 50%;
    width: max-content;
    max-width: calc(100% - 20px);
    height: 56px;
    padding: 6px;
    gap: 12px;
    transform: translate(-50%, 18px);
  }

  .cookiebar-wrap.cookiebar-visible {
    transform: translate(-50%, 0);
  }

  .cookiebar-text {
    padding-left: 12px;
    font-size: 13px;
  }

  .cookiebar-btn {
    min-height: 42px;
    padding: 0 14px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookiebar-wrap,
  .cookiebar-btn {
    transition: none;
  }
}
