/**
 * APD 568 — unconditional compact-row value owner.
 *
 * Do not depend on a body class: on iOS the modal can paint one frame before
 * Safari exposes the final class list.  The real DOM node is therefore visible
 * whenever the canonical form is present on a phone/tablet viewport.
 */
@media (max-width: 1024px) {
  #apd5-search#apd5-search > [data-search-field] > button:first-child {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    overflow: hidden !important;
  }

  #apd5-search#apd5-search > [data-search-field] > button:first-child > .apd568-row-summary {
    -webkit-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
    display: block !important;
    visibility: visible !important;
    position: static !important;
    inset: auto !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 72% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #222 !important;
    opacity: 1 !important;
    clip: auto !important;
    clip-path: none !important;
    transform: none !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: 20px !important;
    font-weight: 650 !important;
    font-style: normal !important;
    letter-spacing: -.02em !important;
    text-align: right !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    pointer-events: none !important;
  }

  /* APD568 is the only visible right-hand owner. */
  #apd5-search#apd5-search > [data-search-field] > button.apd568-summary-ready
  > :is(.apd536-row-value,#apd5-location-summary,#apd394-location-summary,#apd5-date-summary,#apd394-date-summary,#apd5-guest-summary,#apd5-service-summary,.apd26-compact-summary) {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  #apd5-search#apd5-search > [data-search-field] > button.apd568-summary-ready::after {
    content: none !important;
    display: none !important;
  }
}
