/* Put the decision information first on narrow screens. The desktop layout remains unchanged. */
@media (max-width: 850px) {
  .detail-grid {
    display: flex;
    flex-direction: column;
  }

  .detail-main {
    display: contents;
  }

  .bid-panel {
    order: 1;
    width: 100%;
  }

  .detail-photos {
    order: 2;
    width: 100%;
  }

  .detail-copy {
    order: 3;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .bid-panel h1 {
    font-size: clamp(2rem, 10vw, 2.5rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .bid-panel input,
  .bid-panel select,
  .bid-panel button,
  .bid-panel .button {
    min-height: 52px;
    font-size: 1rem;
  }

  .photo-thumbs button {
    width: 72px;
    min-width: 72px;
    height: 64px;
  }

  .detail-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .detail-actions .inline-button {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 10px 0;
    font-size: 1rem;
  }
}
