/*
 * Cookie banner (element defaults/cookie_banner). Bottom card, never covers
 * the whole screen; sits above the phone tab bar and the map's bottom sheet.
 */
.ibc {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
  pointer-events: none; font-family: Roboto, "Segoe UI", Arial, sans-serif;
}
.ibc[hidden] { display: none; }
.ibc-box {
  pointer-events: auto; max-width: 760px; margin: 0 auto; background: #fff; color: #111a22;
  border-radius: 12px; box-shadow: 0 6px 28px rgba(0, 0, 0, .3); padding: 16px 18px;
  display: grid; gap: 12px; font-size: 16px; line-height: 1.5;
}
.ibc-title { margin: 0; font-size: 18px; font-weight: 700; }
.ibc-text { margin: 0; }
.ibc-text a { color: #01579b; font-weight: 700; text-decoration: underline; }
.ibc-prefs { display: grid; gap: 8px; }
.ibc-prefs[hidden] { display: none; }
.ibc-opt { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; margin: 0; min-height: 44px; padding-top: 4px; }
.ibc-opt input { width: 22px; height: 22px; margin-top: 1px; flex: 0 0 auto; }
.ibc-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
/* same look for every choice: refusing is as easy as accepting */
.ibc-btn {
  min-height: 48px; border-radius: 8px; border: 2px solid #01579b; background: #01579b; color: #fff;
  font-size: 16px; font-weight: 700; cursor: pointer; padding: 0 10px;
}
.ibc-btn[hidden] { display: none; }
.ibc-btn:hover, .ibc-btn:focus { filter: brightness(1.12); }
.ibc-btn:focus-visible { outline: 3px solid #f2a65a; outline-offset: 2px; }
@media (max-width: 767px) {
  /* above the app's bottom tab bar (UX v2) */
  body.ux2 .ibc { bottom: 64px; }
  .ibc-box { padding: 14px; font-size: 15px; }
}
@media (max-width: 400px) {
  .ibc-btn { font-size: 15px; padding: 0 6px; }
}
