/* Legacy native consent controls stay in document flow: never cover forms or mobile booking actions. */
.pbe-analytics-notice {
  box-sizing: border-box; max-width: 1100px; margin: 0 auto 24px; padding: 16px;
  background: #F8DCE1; color: #2B2926; border-radius: 12px;
  font-family: 'Jost', sans-serif; font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere;
}
.pbe-analytics-notice[hidden] { display: none; }
.pbe-analytics-notice p { margin: 0 0 12px; color: #2B2926; }
.pbe-analytics-notice a { color: #6D2E3C; text-decoration: underline; }
.pbe-analytics-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pbe-analytics-actions button {
  box-sizing: border-box; min-height: 44px; max-width: 100%; padding: 10px 18px;
  font: inherit; white-space: normal; border: 1px solid #6D2E3C; border-radius: 6px;
  background: #6D2E3C; color: #FFFFFF; cursor: pointer;
}
.pbe-analytics-actions [data-analytics-decline] { background: #FFFFFF; color: #6D2E3C; }
.pbe-privacy-choices {
  font: inherit; padding: 0; border: 0; background: transparent; color: inherit;
  text-decoration: underline; cursor: pointer; min-height: 44px; white-space: normal;
}
.pbe-analytics-notice :focus-visible, .pbe-privacy-choices:focus-visible { outline: 2px solid #6D2E3C; outline-offset: 3px; }

/* The public popup has its own classes. The installed native notice keeps the rules above. */
.pbe-consent-card, .pbe-consent-dialog {
  box-sizing: border-box; background: #FFFFFF; color: #2B2926;
  font: 400 1rem/1.5 'Jost', sans-serif; overflow-wrap: anywhere;
  border: 1px solid #D9D4D1; border-radius: 14px;
  box-shadow: 0 8px 32px rgba(43, 41, 38, .12);
}
.pbe-consent-card {
  position: fixed; z-index: 40; left: 50%; transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom) + var(--pbe-consent-booking-space, 0px));
  width: min(620px, calc(100% - 24px)); padding: 16px;
  max-height: calc(100vh - 32px - env(safe-area-inset-bottom) - var(--pbe-consent-booking-space, 0px) - var(--pbe-consent-header-space, 0px));
  max-height: calc(100dvh - 32px - env(safe-area-inset-bottom) - var(--pbe-consent-booking-space, 0px) - var(--pbe-consent-header-space, 0px));
  overflow-y: auto; overscroll-behavior: contain;
}
.pbe-consent-card[hidden] { display: none; }
.pbe-consent-card h2, .pbe-consent-dialog h2 {
  margin: 0; font: 600 1.125em/1.3 'Jost', sans-serif; color: #2B2926;
}
.pbe-consent-message p { margin: 0; color: #2B2926; line-height: 1.5; }
.pbe-consent-message a { color: #6D2E3C; text-decoration: underline; }
.pbe-consent-dialog p { margin: 14px 0; color: #2B2926; }
.pbe-consent-card button, .pbe-consent-dialog button {
  box-sizing: border-box; font: inherit; cursor: pointer; min-height: 44px; white-space: normal;
}
.pbe-consent-close {
  border: 0; background: transparent; color: #625C58; font-size: 1.5em !important;
  width: 44px; padding: 0; flex: 0 0 44px;
}
.pbe-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pbe-consent-actions button { flex: 1 1 7em; min-width: 0; }
.pbe-consent-primary, .pbe-consent-secondary { padding: 10px 16px; border-radius: 6px; }
.pbe-consent-card .pbe-consent-actions button { min-height: 52px; font-family: 'Jost', sans-serif; font-size: 1rem; line-height: 1.5; }
.pbe-consent-card .pbe-consent-primary, .pbe-consent-dialog .pbe-consent-primary { min-height: 52px; background: #E0006A; color: #FFFFFF; border: 1px solid #E0006A; font-weight: 600; }
.pbe-consent-secondary { background: #FFFFFF; color: #2B2926; border: 1px solid #B9B2AD; }
.pbe-consent-links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 4px; }
.pbe-consent-links button, .pbe-consent-links a {
  font: inherit; padding: 8px 0; border: 0; background: transparent; color: #625C58; text-decoration: underline;
}
.pbe-consent-links a { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; }
.pbe-consent-card :focus-visible, .pbe-consent-dialog :focus-visible { outline: 2px solid #6D2E3C; outline-offset: 3px; }
.pbe-consent-dialog {
  width: min(480px, calc(100% - 32px)); max-width: none; padding: 0;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: hidden;
}
.pbe-consent-dialog[open] { display: flex; flex-direction: column; }
.pbe-consent-dialog::backdrop { background: rgba(43, 41, 38, .32); }
.pbe-consent-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 12px; flex: 0 0 auto; }
.pbe-consent-dialog-header h2 { padding: 0; }
.pbe-consent-dialog-content { overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding: 0 24px; }
.pbe-consent-dialog-content a { color: #6D2E3C; text-decoration: underline; }
.pbe-consent-essential { padding: 12px 0; border-bottom: 1px solid #D9D4D1; }
.pbe-consent-essential h3 { margin: 0; font: 500 1em/1.5 'Jost', sans-serif; }
.pbe-consent-essential span { color: #625C58; font-size: .875em; }
.pbe-consent-optional { display: flex; align-items: center; gap: 12px; padding: 16px 0 0; min-height: 44px; font-weight: 500; cursor: pointer; }
.pbe-consent-optional input { width: 22px; height: 22px; flex: 0 0 22px; margin: 0; accent-color: #E0006A; }
.pbe-consent-dialog-actions { padding: 16px 24px 20px; border-top: 1px solid #D9D4D1; flex: 0 0 auto; }
.pbe-consent-dialog-actions button { width: 100%; }
.pbe-consent-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (min-width: 1024px), (min-width: 700px) and (max-height: 500px) {
  .pbe-consent-card { width: min(960px, calc(100% - 40px)); padding: 18px 24px; }
  .pbe-consent-message p { font-size: .875rem; }
  .pbe-consent-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-top: 12px; }
  .pbe-consent-actions { order: 2; margin-top: 0; max-width: 100%; }
  .pbe-consent-actions button { flex: 0 1 auto; }
  .pbe-consent-card .pbe-consent-actions button { min-height: 44px; }
  .pbe-consent-links { order: 1; margin-top: 0; font-size: .875rem; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .pbe-consent-card, .pbe-consent-dialog { scroll-behavior: auto; }
}
