.lathra-consent {
  position: fixed;
  z-index: 2147483000;
  left: 50%;
  right: auto;
  bottom: max(22px, env(safe-area-inset-bottom));
  width: min(424px, calc(100vw - 40px));
  color: #f3ead8;
  background: linear-gradient(135deg, rgba(26, 32, 25, 0.9), rgba(44, 36, 25, 0.86));
  border: 1px solid rgba(217, 179, 123, 0.32);
  border-radius: 8px;
  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  opacity: 0;
  transform: translate3d(-50%, 10px, 0);
  pointer-events: none;
  transition:
    opacity 0.32s ease,
    transform 0.32s ease;
}

.lathra-consent--visible {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
  pointer-events: auto;
}

.lathra-consent__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 13px 12px 13px 16px;
}

.lathra-consent__text {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  color: rgba(243, 234, 216, 0.9);
  font: 400 13px/1.42 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.lathra-consent__link {
  color: #d9b37b;
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 179, 123, 0.38);
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.lathra-consent__link:hover {
  color: #f1d98a;
  border-bottom-color: rgba(241, 217, 138, 0.72);
}

.lathra-consent__button {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  display: inline-grid;
  place-items: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(241, 217, 138, 0.52);
  border-radius: 50%;
  color: #17120c;
  background: linear-gradient(135deg, #f1d98a, #bd8e3e);
  box-shadow: 0 9px 22px rgba(189, 142, 62, 0.22);
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.lathra-consent__button::before,
.lathra-consent__button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 1.7px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.lathra-consent__button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lathra-consent__button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.lathra-consent__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(189, 142, 62, 0.3);
  filter: brightness(1.04);
}

.lathra-consent__button:focus-visible,
.lathra-consent__link:focus-visible {
  outline: 2px solid rgba(241, 217, 138, 0.85);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .lathra-consent {
    left: 12px;
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    width: auto;
    transform: translate3d(0, 10px, 0);
  }

  .lathra-consent--visible {
    transform: translate3d(0, 0, 0);
  }

  .lathra-consent__inner {
    grid-template-columns: 36px 1fr;
    gap: 10px;
    padding: 12px;
  }

  .lathra-consent__button {
    justify-self: start;
    width: 36px;
    min-width: 36px;
    height: 36px;
  }

  .lathra-consent__text {
    font-size: 12px;
    line-height: 1.34;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lathra-consent,
  .lathra-consent__button,
  .lathra-consent__link {
    transition: none;
  }
}
