/* KOY-4714: approved mobile cookie card to the left of Jivo. */
@media (max-width: 900px) {
  #cookie-notice {
    left: 12px;
    right: 90px;
    bottom: calc(12px + max(var(--nn-cookie-bar-offset, 0px), env(safe-area-inset-bottom, 0px)));
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border-radius: 10px;
    background-color: #454545 !important;
    box-shadow: 0 3px 12px rgb(0 0 0 / 20%);
    transition: bottom .22s ease;
  }
  #cookie-notice .cookie-notice-container {
    position: relative;
    width: auto;
    margin: 0;
    padding: 12px 12px 12px 58px;
    text-align: left;
  }
  #cookie-notice #cn-notice-text {
    display: block;
    max-width: none;
    margin: 0;
    color: #fff;
    font: 13px/18px Arial, sans-serif;
  }
  #cookie-notice #cn-more-info {
    display: inline;
    margin: 0 !important;
    font: inherit;
    color: inherit;
    text-decoration: underline;
  }
  #cookie-notice #cn-notice-buttons,
  #cookie-notice #cn-accept-cookie {
    display: none !important;
  }
  #cookie-notice #cn-close-notice {
    position: absolute;
    top: 10px;
    left: 5px;
    right: auto;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    opacity: 1;
    transform: none;
  }
  #cookie-notice #cn-close-notice::before,
  #cookie-notice #cn-close-notice::after {
    content: '';
    position: absolute;
    top: 21px;
    left: 10px;
    width: 24px;
    height: 2px;
    background: #fff;
    opacity: 1;
  }
  #cookie-notice #cn-close-notice::before { transform: rotate(45deg); }
  #cookie-notice #cn-close-notice::after { transform: rotate(-45deg); }
  #cookie-notice #cn-close-notice:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
  }
  /* Keep the real mobile launcher beside the card, above the appointment bar.
     Include bar-on specificity to override the old profile-wide Jivo offset. */
  html body jdiv jdiv[class].__jivoMobileButton,
  html body.bar-on jdiv jdiv[class].__jivoMobileButton {
    right: 12px !important;
    bottom: calc(12px + max(var(--nn-cookie-bar-offset, 0px), env(safe-area-inset-bottom, 0px))) !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    transition: bottom .22s ease;
  }
  html body jdiv jdiv.__jivoMobileButton > jdiv:first-child {
    margin: 0 !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  #cookie-notice { transition: none; }
}
