.cookie-consent {
  position: fixed;
  left: max(0.5rem, env(safe-area-inset-left, 0px));
  right: max(0.5rem, env(safe-area-inset-right, 0px));
  bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
  z-index: 200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 0.75rem;
  box-sizing: border-box;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #0a0a0a;
  color: rgba(245, 240, 235, 0.82);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

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

.cookie-consent__text {
  flex: 1 1 12rem;
  min-width: 0;
  margin: 0;
  font-size: 0.62rem;
  line-height: 1.35;
  white-space: normal;
}

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

.cookie-consent__accept {
  flex: 0 0 auto;
  min-height: 0;
  height: auto;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(201, 169, 110, 0.45);
  border-radius: 4px;
  background: #c9a96e;
  color: #1f1608;
  font: inherit;
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-consent__accept:hover {
  filter: brightness(1.04);
}

@media (max-width: 640px) {
  .cookie-consent {
    left: max(0.45rem, env(safe-area-inset-left, 0px));
    right: max(0.45rem, env(safe-area-inset-right, 0px));
    bottom: max(0.45rem, env(safe-area-inset-bottom, 0px));
    padding: 0.5rem 0.55rem;
    gap: 0.5rem;
  }

  .cookie-consent__text {
    flex: 1 1 100%;
    font-size: 0.6rem;
    line-height: 1.4;
  }

  .cookie-consent__accept {
    margin-left: auto;
    padding: 0.4rem 0.75rem;
  }
}

@media (min-width: 641px) {
  .cookie-consent {
    left: 50%;
    right: auto;
    width: max-content;
    max-width: calc(100vw - 1rem);
    transform: translateX(-50%);
    flex-wrap: nowrap;
    padding: 0.35rem 0.55rem;
  }

  .cookie-consent__text {
    flex: 1 1 auto;
    white-space: nowrap;
  }
}
