/* The picture wrapper adds source selection, not a new desktop layout box. */
.md-product-center-package .md-product-center-card__picture { display: contents; }
.md-product-center-package .md-product-center-card__description .md-product-center-card__break--mobile { display: none; }

/* One mobile layout, including portrait tablets; desktop CSS remains frozen. */
@media (width < 1024px) {
  .md-product-center-package .md-product-center-package__main,
  .md-product-center-package .md-product-center-package__main[data-active-category="accessories"] {
    min-height: 0;
    padding: 0 0 80px;
  }
  .md-product-center-package .md-product-center-package__shell { width: 100%; }
  .md-product-center-package .md-product-center-package__main h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .md-product-center-package .md-product-center-package__layout { display: block; }
  .md-product-center-package .md-product-center-package__tabs {
    box-sizing: border-box;
    width: 100%;
    height: 48.5px;
    padding: 0 max(var(--md-mobile-gutter), calc((100% - var(--md-mobile-content-max)) / 2));
    border-bottom: .5px solid #cecece;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .md-product-center-package .md-product-center-package__tabs::-webkit-scrollbar { display: none; }
  .md-product-center-package .md-product-center-package__tabs::before { display: none; }
  .md-product-center-package .md-product-center-package__tabs button {
    width: auto;
    min-width: 44px;
    height: 48px;
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 24px;
    text-align: center;
    white-space: nowrap;
  }
  .md-product-center-package .md-product-center-package__tabs button::before {
    top: auto;
    bottom: 0;
    left: 50%;
    width: 28px;
    height: 2px;
    transform: translateX(-50%);
  }
  .md-product-center-package .md-product-center-package__tabs button:focus-visible { outline-offset: -4px; }
  .md-product-center-package .md-product-center-package__panels {
    width: min(var(--md-mobile-content-max), calc(100% - (2 * var(--md-mobile-gutter))));
    margin: 24px auto 0;
  }
  .md-product-center-package .md-product-center-package__panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .md-product-center-package .md-product-center-card {
    min-width: 0;
    height: auto;
    min-height: 409px;
    padding: 20px 32px 28px;
    border-radius: 10px;
  }
  .md-product-center-package .md-product-center-card__media {
    width: 250px;
    max-width: 100%;
    height: 180px;
    margin: 0 0 15px;
    flex-shrink: 0;
  }
  .md-product-center-package .md-product-center-card h2 {
    margin: 0 0 15px;
    font-size: 18px;
    line-height: 21px;
    overflow-wrap: anywhere;
  }
  .md-product-center-package .md-product-center-card__description {
    width: 100%;
    max-width: 390px;
    min-height: 45px;
    font-size: 12px;
    line-height: 15px;
    overflow-wrap: anywhere;
  }
  /* Keep one content string while switching only the approved editorial breaks. */
  .md-product-center-package .md-product-center-card__description { white-space: nowrap; }
  .md-product-center-package .md-product-center-card__description .md-product-center-card__break--desktop { display: none; }
  .md-product-center-package .md-product-center-card__description .md-product-center-card__break--mobile { display: inline; }
  .md-product-center-package .md-product-center-card__cta {
    position: relative;
    z-index: 0;
    min-width: 90px;
    height: 44px;
    min-height: 44px;
    margin-top: 20px;
    padding: 0 15px;
    border: 0;
    border-radius: 20px;
    background: transparent !important;
    font-size: 14px;
    line-height: 20px;
    flex: 0 0 44px;
  }
  /* Preserve the 36px outline in the design inside a 44px native hit target. */
  .md-product-center-package .md-product-center-card__cta:is(:hover, :active, :focus-visible) {
    background: transparent !important;
  }
  .md-product-center-package .md-product-center-card__cta::before {
    position: absolute;
    z-index: -1;
    inset: 4px 0;
    border: 1px solid #333;
    border-radius: 20px;
    content: "";
  }
  .md-product-center-package .md-product-center-card__cta:hover::before,
  .md-product-center-package .md-product-center-card__cta:active::before,
  .md-product-center-package .md-product-center-card__cta:focus-visible::before {
    border-color: #face24;
    background: #face24;
  }
  .md-product-center-package .md-product-center-package__panel--accessories .md-product-center-card { padding-inline: 12px; }
  .md-product-center-package .md-product-center-package__panel--accessories .md-product-center-card__media {
    width: 300px;
    height: 216px;
    margin-bottom: 33px;
  }
  .md-product-center-package .md-product-center-package__panel--accessories .md-product-center-card__description { width: calc(100% - 40px); min-height: 0; }
}
