﻿/* Stack product content on tablets and beside the desktop cart. */
@media (min-width: 601px) and (max-width: 850px) {
  .storefront .flowSteps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .storefront .flowSteps i {
    display: none;
  }
  .storefront .flowSteps button {
    min-width: 0;
    gap: 8px;
  }
  .storefront .flowSteps button b {
    flex-shrink: 0;
  }
  .storefront .flowSteps button span {
    min-width: 0;
    white-space: normal;
  }
  .storefront .mobileOrderBar {
    left: 0;
    right: 0;
    width: auto;
    max-width: 100%;
  }
  .storefront .mobileOrderBar #mobileContinue {
    min-width: 0;
    white-space: normal;
  }
}
@media (min-width: 601px) and (max-width: 1200px) {
  .storefront .shopGrid {
    grid-template-columns: minmax(0, 1fr) 265px;
    gap: 18px;
  }
  .storefront .SubConNr > ul > .productCard,
  .storefront .NR1 .productCard:has(.publicationReference) {
    grid-template-columns: minmax(0, 1fr);
  }
  .storefront .productCard .GroupLeft {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--store-border);
  }
  .storefront .productCard .GroupRight {
    min-width: 0;
    padding: 14px;
  }
  .storefront .bundleReference {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 12px;
  }
  .storefront .bundleReference figcaption {
    grid-column: 1 / -1;
  }
  .storefront :is(.NR6, .NR7) .productCard .ysCoverGrid {
    max-width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
  .storefront .NR7 .productCard .ysCoverGrid {
    max-width: 340px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .storefront .NR6 .ysGiftGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .storefront :is(.NR1, .NR4, .NR5, .NR6, .NR7, .NR8)
    .productCard .subXXDiv > header .Sub_xxS:has(> .zhisDF) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
  }
  .storefront :is(.NR1, .NR4, .NR5, .NR6, .NR7, .NR8)
    .productCard .Sub_xxS:has(> .zhisDF) > label {
    display: block;
    float: none;
    width: auto;
    min-width: 0;
    white-space: normal;
    overflow-wrap: break-word;
  }
  .storefront #suiteGroupsElement .Sub_xxS label > span {
    display: inline;
    float: none;
    width: auto;
    white-space: normal;
  }
  .storefront #suiteGroupsElement .Sub_xxS label .readingBundleGrade {
    display: block;
    margin-top: 3px;
  }
  .storefront :is(.NR1, .NR4, .NR5, .NR6, .NR7, .NR8)
    .productCard .Sub_xxS > .zhisDF {
    position: static;
    display: block;
    float: none;
    justify-self: end;
    width: auto;
    min-width: 96px;
    margin: 0;
  }
  .storefront :is(.NR1, .NR4, .NR5, .NR6, .NR7, .NR8)
    .productCard .zhisDF > div {
    display: flex;
    flex-wrap: nowrap;
    width: auto;
    margin: 0;
  }
  .storefront :is(.NR1, .NR4, .NR5, .NR6, .NR7, .NR8)
    .productCard .zhisDF :is(button, .o_nr_input) {
    flex: 0 0 32px;
    width: 32px;
    min-width: 32px;
  }
}
