/* Narrow-screen interaction fixes only. Never change proof artwork or laser settings. */
@media (max-width: 760px) {
  .estate-dialog {
    box-sizing: border-box;
    width: calc(100% - 16px);
    max-width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    padding: 14px;
  }
  .estate-dialog > header {
    position: sticky;
    top: -14px;
    z-index: 12;
    background: #fffdf6;
    padding-block: 8px;
  }
  .estate-dialog fieldset { min-width: 0; padding: 10px; }
  .estate-dialog .board-finishing { padding: 12px; }
  /* Avoid iOS focus zoom for checkout fields while preserving existing touch height. */
  #delivery-form input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
  #delivery-form select,
  #delivery-form textarea,
  #payment-form input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
  #payment-form select,
  #payment-form textarea,
  body[data-active-panel="complete"] input[type="number"],
  body[data-active-panel="complete"] select {
    font-size: 16px;
    min-height: 44px;
  }
  #plywood-test-confirm { width: 20px; height: 20px; min-height: 20px; padding: 0; flex: none; margin-right: 8px; }

  /* The floating design launcher otherwise covers delivery and output controls. */
  body:is([data-active-panel="cart"], [data-active-panel="delivery"], [data-active-panel="payment"], [data-active-panel="complete"]) .personal-ai-launcher {
    display: none !important;
  }

  /* Native selects do not wrap: the selected key plan is also shown as readable text. */
  .estate-dialog .keepsake-selected-summary {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.6;
  }
}
