.privacy-banner {
  position: fixed;
  z-index: 1000;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(390px, calc(100vw - 32px));
  pointer-events: none;
}

.privacy-banner-panel {
  position: relative;
  width: 100%;
  max-height: min(620px, calc(100dvh - 32px));
  overflow-y: auto;
  padding: 20px;
  border: 1px solid rgba(20, 100, 180, .18);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 14px 44px rgba(6, 21, 40, .2);
  animation: cookie-notice-in .2s ease both;
  pointer-events: auto;
}

.privacy-banner-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: none;
}

.privacy-banner-close:hover { background: var(--surface-2, #f3f6f4); color: var(--ink); }
.privacy-banner-content { padding-right: 24px; }
.privacy-banner h2 { margin: 0 0 7px; font-size: 1.08rem; line-height: 1.3; letter-spacing: -.01em; }
.privacy-banner p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.48; }
.privacy-banner-option { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2, #f7f9fb); }
.privacy-banner-option strong { display: block; margin-bottom: 3px; font-size: .86rem; }
.privacy-banner-option p { font-size: .76rem; }
.privacy-banner-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.privacy-banner-actions button { min-height: 44px; padding: 9px 10px; font-size: .8rem; }
body.offer-page:has(.step.active:is([data-step="address"],[data-step="property"],[data-step="contact"],[data-step="photos"],[data-step="review"])) .privacy-banner { bottom: calc(104px + env(safe-area-inset-bottom)); }
body.offer-page:has(.step.active:is([data-step="address"],[data-step="property"],[data-step="contact"],[data-step="photos"],[data-step="review"])) .privacy-banner-panel { max-height: min(620px, calc(100dvh - 136px)); }

@keyframes cookie-notice-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  .privacy-banner { left: 10px; bottom: max(10px, env(safe-area-inset-bottom)); width: calc(100vw - 20px); }
  body.offer-page:has(.step.active:is([data-step="address"],[data-step="property"],[data-step="contact"],[data-step="photos"],[data-step="review"])) .privacy-banner { bottom: calc(148px + env(safe-area-inset-bottom)); }
  body.offer-page:has(.step.active:is([data-step="address"],[data-step="property"],[data-step="contact"],[data-step="photos"],[data-step="review"])) .privacy-banner-panel { max-height: min(52dvh, calc(100dvh - 176px)); }
  .privacy-banner-panel { max-height: min(52dvh, 420px); padding: 16px; border-radius: 12px; }
  .privacy-banner h2 { font-size: 1rem; }
  .privacy-banner p { font-size: .76rem; }
  .privacy-banner-actions { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .privacy-banner-panel { animation-duration: .01ms; }
}
