.lp-consent-banner,
.lp-consent-dialog {
  box-sizing: border-box;
  width: min(432px, calc(100vw - 48px));
  max-width: 432px;
  padding: 28px 32px 32px;
  border: 0;
  border-radius: 16px;
  background: rgba(29, 9, 5, 0.9);
  color: #E5E3E2;
  font-family: Inter, sans-serif;
  z-index: 10000;
}

.lp-consent-banner[hidden],
.lp-consent-overlay[hidden] {
  display: none !important;
}

.lp-consent-banner {
  position: fixed;
  right: clamp(24px, 5vw, 80px);
  bottom: clamp(24px, 4vw, 64px);
}

.lp-consent-dialog {
  position: fixed;
  right: clamp(24px, 5vw, 80px);
  bottom: clamp(24px, 4vw, 64px);
  left: auto;
  top: auto;
  margin: 0;
  max-height: min(720px, calc(100vh - 48px));
  overflow-y: auto;
}

.lp-consent-dialog::backdrop {
  background: transparent;
}

.lp-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(29, 9, 5, 0.55);
  backdrop-filter: blur(2px);
}

.lp-consent-title {
  max-width: 42ch;
  margin: 0 44px 22px 0;
  color: #E5E3E2;
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.lp-consent-copy,
.lp-consent-category,
.lp-consent-current,
.lp-consent-error {
  max-width: 42ch;
  margin: 0;
  color: #E5E3E2;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
}

.lp-consent-copy + .lp-consent-category,
.lp-consent-category + .lp-consent-copy,
.lp-consent-copy + .lp-consent-current {
  margin-top: 18px;
}

.lp-consent-more {
  margin-top: 12px;
}

.lp-consent-link,
.lp-consent-link:visited {
  color: #E5E3E2;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lp-consent-current {
  margin-top: 22px;
}

.lp-consent-current-value {
  font-weight: 800;
}

.lp-consent-error {
  margin-top: 14px;
  color: #FFF2EF;
  font-weight: 700;
}

.lp-consent-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.lp-consent-button {
  box-sizing: border-box;
  flex: 0 0 auto;
  min-height: 52px;
  padding: 12px;
  border: 2px solid #E5E3E2;
  border-radius: 12px;
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.lp-consent-button--allow {
  background: #E5E3E2;
  color: #1D0905;
}

.lp-consent-button--allow:hover {
  background: rgba(229, 227, 226, 0.8);
}

.lp-consent-button--allow:active {
  background: rgba(229, 227, 226, 0.7);
  transform: translateY(1px);
}

.lp-consent-button--reject {
  background: transparent;
  color: #E5E3E2;
}

.lp-consent-button--reject:hover {
  background: rgba(229, 227, 226, 0.12);
}

.lp-consent-button--reject:active {
  background: rgba(229, 227, 226, 0.2);
  transform: translateY(1px);
}

.lp-consent-close {
  position: absolute;
  top: 22px;
  right: 22px;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(229, 227, 226, 0.22);
  color: #1D0905;
  font-family: Inter, sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.lp-consent-close:hover {
  background: rgba(229, 227, 226, 0.3);
}

.lp-consent-close:active {
  transform: translateY(1px);
}

.lp-consent-settings-slot {
  display: flex;
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
  padding: 24px 20px max(24px, env(safe-area-inset-bottom));
}

.lp-consent-settings-trigger {
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: currentColor;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  opacity: 0.72;
}

.lp-consent-settings-trigger:hover {
  opacity: 1;
}

.lp-consent-button:focus-visible,
.lp-consent-close:focus-visible,
.lp-consent-link:focus-visible,
.lp-consent-settings-trigger:focus-visible {
  outline: 3px solid #E5E3E2;
  outline-offset: 3px;
}

body.lp-consent-banner-visible {
  scroll-padding-bottom: 360px;
}

@media (max-width: 600px) {
  .lp-consent-banner,
  .lp-consent-dialog {
    width: auto;
    max-width: none;
    padding: 24px 24px 28px;
    border-radius: 16px;
  }

  .lp-consent-banner {
    right: 16px;
    left: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
  }

  .lp-consent-dialog {
    right: 16px;
    left: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    max-height: calc(100vh - 32px);
  }

  .lp-consent-title {
    margin-bottom: 20px;
    font-size: clamp(20px, 5.4vw, 30px);
  }

  .lp-consent-copy,
  .lp-consent-category,
  .lp-consent-current,
  .lp-consent-error {
    font-size: clamp(16px, 4.2vw, 24px);
  }

  .lp-consent-actions {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }

  .lp-consent-button {
    width: 100%;
    min-height: 56px;
    padding: 12px 24px;
    font-size: clamp(20px, 5vw, 30px);
  }

  .lp-consent-close {
    top: 20px;
    right: 20px;
  }

  body.lp-consent-banner-visible {
    scroll-padding-bottom: 520px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-consent-button,
  .lp-consent-close {
    transition: none;
  }
}
