.mp-course-bar { display: none; }

@media (max-width: 1023.98px) {
  .mp-course-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: hsl(var(--background));
    border-top: 1px solid hsl(var(--border));
    box-shadow: 0 -4px 16px rgb(0 0 0 / 0.08);
  }
  .mp-course-bar-price {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: none;
    margin-right: 4px;
  }
  .mp-course-bar-cart { flex: none; }
  .mp-course-bar > [name=buy_now] { min-width: 0; }
  main:has(.mp-course-bar) { padding-bottom: 96px; }
}
