/* Readable footer and compact first-visit privacy choice. */
body > footer {
  flex-wrap: wrap;
  align-items: flex-start;
}
body > footer > p { margin: 0; min-width: 0; }
body > footer > p a { overflow-wrap: anywhere; }
body > footer #aggregate-privacy-notice {
  flex: 0 0 100%;
  color: #cbd9dd;
  font-size: 14px;
  line-height: 1.5;
}
body > footer #aggregate-privacy-notice a,
body > footer > .text-button {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body > footer > .text-button {
  flex: 0 0 100%;
  width: fit-content;
  min-height: 44px;
  padding: 8px 0;
  text-align: left;
  margin: -8px 0;
}
body > footer a:focus-visible,
body > footer > .text-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
#traffic-choice {
  position: fixed;
  z-index: 20;
  left: 20px;
  bottom: 20px;
  width: min(440px, calc(100% - 40px));
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  min-width: 0;
  margin: 0;
  padding: 20px;
  background: #fff;
  color: #182b32;
  border: 1px solid #bacbd0;
  border-radius: 12px;
  box-shadow: 0 8px 40px #10283133;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
#traffic-choice h2 {
  font: 700 19px/1.3 'DM Sans', Arial, sans-serif;
  letter-spacing: 0;
  margin: 0;
}
#traffic-choice p {
  color: #182b32;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}
#traffic-choice .traffic-choice-copy { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
#traffic-choice details { margin-top: 6px; }
#traffic-choice summary { cursor: pointer; font-size: 14px; font-weight: 600; padding: 10px 0; }
#traffic-choice details p { margin-top: 10px; }
#traffic-choice a {
  color: #254e59;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#traffic-choice .traffic-choice-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 8px;
  flex-shrink: 0;
}
#traffic-choice .button {
  color: #182b32;
  background: #fff;
  min-height: 44px;
  margin: 0;
  padding: 10px 8px;
  font-size: 14px;
  line-height: 1.4;
}
#traffic-choice :focus-visible {
  outline: 2px solid #254e59;
  outline-offset: 3px;
}
#traffic-choice .traffic-choice-remember { font-size: 12px; color: #52666d; }
@media (max-width: 720px) {
  body > footer { gap: 16px; padding: 24px 5%; }
  body > footer > .brand,
  body > footer > p { flex-basis: 100%; }
  body > footer > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    flex: 0 0 100%;
    min-width: 0;
  }
  body > footer > div > a { padding: 4px 0; line-height: 1.5; }
  #traffic-choice {
    left: 12px;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 24px);
    max-height: calc(100vh - 88px - env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 88px - env(safe-area-inset-bottom, 0px));
    padding: 16px;
    gap: 10px;
  }
  .owner-view #traffic-choice { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}
