/* Mobile composition for the shared prints feature and hire-duration controls.
   Keep the approved desktop layouts and existing booking behaviour unchanged. */
@media screen and (max-width: 760px) {
  /* Bring the three strips closer. All strip edges stay in frame; only the
     surrounding background and the outer ends of the forearms are cropped. */
  body:is(.editorial-celebration, .planner-corporate) .ps-corporate-prints {
    width: 100%;
    overflow: hidden;
  }

  body:is(.editorial-celebration, .planner-corporate) .ps-corporate-prints::before,
  body:is(.editorial-celebration, .planner-corporate) .ps-corporate-prints::after {
    display: none;
  }

  body:is(.editorial-celebration, .planner-corporate) .ps-corporate-prints > img {
    display: block;
    width: 125%;
    max-width: none;
    height: auto;
    max-height: none;
    margin: 0 0 0 -12.5%;
    object-fit: contain;
    object-position: center;
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* One row makes all five durations immediately comparable on a phone. */
  body:is(.editorial-celebration, .planner-corporate) :is(.ep-time-grid, .pc-hour-grid),
  body.editorial-corporate.planner-corporate .pc-hour-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(6px, 1.6vw, 12px);
    align-items: stretch;
  }

  body:is(.editorial-celebration, .planner-corporate) :is(.ep-time-grid, .pc-hour-grid) :is(.ep-time-card, .pc-hour-card) {
    grid-column: auto;
    min-width: 0;
    min-height: 44px;
  }

  body:is(.editorial-celebration, .planner-corporate) :is(.ep-time-grid, .pc-hour-grid) :is(.ep-time-card, .pc-hour-card) :is(.ep-time-face, .pc-hour-surface) {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 152px;
    padding: 12px clamp(4px, 1.6vw, 12px) 11px;
    border-radius: 8px;
    text-align: center;
  }

  body:is(.editorial-celebration, .planner-corporate) :is(.ep-time-grid, .pc-hour-grid) :is(.ep-time-card, .pc-hour-card) :is(.ep-time-top, .pc-hour-top) {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 0;
  }

  /* The radio already names the hours and price. Remove repeated captions
     from the compact face while retaining the visible selection indicator. */
  body:is(.editorial-celebration, .planner-corporate) :is(.ep-time-grid, .pc-hour-grid) :is(.ep-time-card, .pc-hour-card) :is(.ep-time-top, .pc-hour-top) > span:first-child,
  body:is(.editorial-celebration, .planner-corporate) :is(.ep-time-grid, .pc-hour-grid) :is(.ep-time-card, .pc-hour-card) :is(.ep-time-select, .pc-hour-select) {
    display: none;
  }

  body:is(.editorial-celebration, .planner-corporate) :is(.ep-time-grid, .pc-hour-grid) :is(.ep-time-card, .pc-hour-card) :is(.ep-time-top i, .pc-radio-mark) {
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    flex: none;
  }

  body:is(.editorial-celebration, .planner-corporate) :is(.ep-time-grid, .pc-hour-grid) :is(.ep-time-card, .pc-hour-card) :is(.ep-time-duration, .pc-hour-duration) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 8px;
  }

  body:is(.editorial-celebration, .planner-corporate) :is(.ep-time-grid, .pc-hour-grid) :is(.ep-time-card, .pc-hour-card) :is(.ep-time-duration, .pc-hour-duration) > strong {
    font-size: clamp(32px, 7vw, 44px);
    line-height: 1;
    letter-spacing: -.03em;
  }

  body:is(.editorial-celebration, .planner-corporate) :is(.ep-time-grid, .pc-hour-grid) :is(.ep-time-card, .pc-hour-card) :is(.ep-time-duration, .pc-hour-duration) > span {
    font-size: 12px;
    line-height: 1.25;
    letter-spacing: 0;
  }

  body:is(.editorial-celebration, .planner-corporate) :is(.ep-time-grid, .pc-hour-grid) :is(.ep-time-card, .pc-hour-card) :is(.ep-time-bottom, .pc-hour-bottom) {
    display: block;
    width: 100%;
    min-width: 0;
    margin-top: auto;
    padding-top: 8px;
  }

  body:is(.editorial-celebration, .planner-corporate) :is(.ep-time-grid, .pc-hour-grid) :is(.ep-time-card, .pc-hour-card) :is(.ep-time-price, .pc-hour-price) {
    display: block;
    font-size: clamp(15px, 3.85vw, 20px);
    line-height: 1.1;
    letter-spacing: -.025em;
    white-space: nowrap;
  }

  body:is(.editorial-celebration, .planner-corporate) :is(.ep-time-grid, .pc-hour-grid) :is(.ep-time-card, .pc-hour-card) :is(.ep-time-price, .pc-hour-price) > small {
    display: block;
    margin: 3px 0 0;
    font-size: 9px;
    line-height: 1.1;
    letter-spacing: .04em;
  }

  body:is(.editorial-celebration, .planner-corporate) :is(.ep-time-grid, .pc-hour-grid) :is(.ep-time-card, .pc-hour-card) input:focus-visible + :is(.ep-time-face, .pc-hour-surface) {
    outline: 3px solid #186d77;
    outline-offset: 2px;
  }

  /* The editorial activation builder also exposes five duration radios.
     Its tier-specific select counterparts remain native select controls. */
  body [data-package-builder] .package-hours {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  body [data-package-builder] .package-hours label {
    min-width: 0;
    min-height: 44px;
  }

  body [data-package-builder] .package-hours label > span {
    box-sizing: border-box;
    min-height: 56px;
    padding: 10px 3px;
    font-size: 12px;
    white-space: nowrap;
  }

  body [data-package-builder] .package-hours label small {
    font-size: 11px;
  }
}
