/* Cookiebot's banner on phones (linked on every page by src/layouts/Base.astro). Cookiebot's own
   layout fills the whole screen there (374 x 828 of 390 x 844) and hides the page, the contact
   form included. Here it is a bottom sheet of at most 45% of the screen: the text scrolls inside
   it, the buttons stay at its foot, and the page above stays visible and usable. */
@media (max-width:600px){
  #CybotCookiebotDialog{top:auto !important;bottom:0 !important;left:0 !important;right:0 !important;
    transform:none !important;margin:0 !important;width:100% !important;min-width:0 !important;max-width:none !important;
    height:auto !important;max-height:45vh !important;border-radius:16px 16px 0 0 !important;}
  #CybotCookiebotDialog .CybotCookiebotDialogContentWrapper{max-height:45vh !important;min-height:0 !important;}
  /* no backdrop over the page */
  #CybotCookiebotDialogBodyUnderlay{display:none !important;}
  #CybotCookiebotDialogHeader{padding:6px 16px !important;min-height:0 !important;}
  #CybotCookiebotDialogHeaderLogosWrapper{padding:0 !important;}
  #CybotCookiebotDialogNav .CybotCookiebotDialogNavItemLink{padding:8px 6px !important;}
  #CybotCookiebotDialogTabContent{flex:1 1 auto !important;min-height:0 !important;overflow-y:auto !important;}
  #CybotCookiebotDialogBodyContent{padding-top:8px !important;}
  /* Deny | Allow selection, then Allow all: two rows instead of three or four */
  #CybotCookiebotDialogFooter{flex:none !important;}
  #CybotCookiebotDialogFooter .CybotCookiebotScrollArea{padding:8px 12px !important;}
  #CybotCookiebotDialogBodyButtonsWrapper{display:grid !important;grid-template-columns:1fr 1fr;gap:8px !important;}
  #CybotCookiebotDialogBodyButtonsWrapper .CybotCookiebotDialogBodyButton{width:auto !important;margin:0 !important;
    min-height:44px;padding:8px 10px !important;}
  #CybotCookiebotDialogBodyButtonsWrapper #CybotCookiebotDialogBodyLevelButtonLevelOptinAllowAll{grid-column:1 / -1;order:3;}
  #CybotCookiebotDialogBodyButtonDecline{order:1;}
  #CybotCookiebotDialogBodyLevelButtonCustomize, #CybotCookiebotDialogBodyLevelButtonLevelOptinAllowallSelection{order:2;}
}
