/*
 * Mobile guard for the authenticated billing notice.
 * Keeps the financial warning visible without covering navigation controls.
 */
@media (max-width: 640px) {
  .billing-notice-banner {
    top: calc(env(safe-area-inset-top, 0px) + 8px) !important;
    right: 8px !important;
    left: auto !important;
    z-index: 40 !important;
    width: min(310px, calc(100vw - 72px)) !important;
    max-width: none !important;
    min-height: 42px !important;
    transform: none !important;
    gap: 7px !important;
    border-radius: 12px !important;
    padding: 5px 6px 5px 8px !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28) !important;
    pointer-events: none !important;
  }

  .billing-notice-banner__icon {
    width: 28px !important;
    height: 28px !important;
    flex-basis: 28px !important;
    border-radius: 9px !important;
  }

  .billing-notice-banner__copy {
    gap: 0 !important;
  }

  .billing-notice-banner__copy strong {
    display: block !important;
    overflow: hidden !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .billing-notice-banner__copy span {
    display: none !important;
  }

  .billing-notice-banner__action {
    width: 32px !important;
    min-height: 32px !important;
    border-radius: 9px !important;
    padding: 0 !important;
    font-size: 0 !important;
    pointer-events: auto !important;
  }

  .billing-notice-overlay {
    z-index: 1800 !important;
  }
}

@media (max-width: 380px) {
  .billing-notice-banner {
    width: calc(100vw - 64px) !important;
  }

  .billing-notice-banner__icon {
    width: 26px !important;
    height: 26px !important;
    flex-basis: 26px !important;
  }

  .billing-notice-banner__action {
    width: 30px !important;
    min-height: 30px !important;
  }
}
