/* Narrow-screen layout corrections for the existing app components. */
@media (max-width: 700px) {
  .cx-hub .cgbx-v2-dashboard .cgbx-v2-hero {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .cx-hub .cgbx-v2-dashboard .cgbx-v2-hero-copy,
  .cx-hub .cgbx-v2-dashboard .cgbx-v2-hero-actions {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
  }

  .cx-hub .cgbx-v2-dashboard .cgbx-v2-hero-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cx-hub .cgbx-v2-dashboard .cgbx-v2-hero-actions .btn {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .cx-hub .cgbx-v2-dashboard .cgbx-v2-price-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    justify-items: start;
    justify-content: start;
    gap: 6px;
  }

  .cx-hub .cgbx-v2-dashboard .cgbx-v2-price-head > span {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
  }

  .cx-hub .cgbx-v2-dashboard .cgbx-v2-price-head .cx-badge {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .cx-hub .cgbx-v2-dashboard .cgbx-v2-allocation {
    grid-template-columns: minmax(0, 1fr);
  }

  .cx-hub .cgbx-v2-dashboard .cgbx-v2-allocation .cgbx-v2-donut {
    margin-inline: auto;
  }

  .cx-hub .cgbx-v2-dashboard .cgbx-v2-allocation ul {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 390px) {
  #app .mobile-nav button[data-mobile] > span.mobile-nav-label {
    display: block;
    max-width: 100%;
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
    line-height: 1.05;
    text-align: center;
  }
}

@media (max-width: 768px) {
  #app .app-shell {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  #app .main {
    padding-bottom: calc(150px + env(safe-area-inset-bottom));
  }

  #app .support-assistant {
    bottom: calc(82px + env(safe-area-inset-bottom));
  }
}
