/* Phone vehicle forms. Native field names/actions and vehicle rules stay unchanged. */
@media (max-width: 640px) {
  .ewp-shop-by-vehicle [data-ew-feature-selector] {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 16px;
    width: calc(100% - 32px);
    max-width: 100%;
    margin: 24px auto;
  }
  .ewp-shop-by-vehicle [data-ew-feature-selector] > label {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
    color: var(--ew-paper, #e8e6e3);
    font-size: 14px;
    line-height: 1.5;
  }
  .ewp-shop-by-vehicle [data-ew-feature-selector] select,
  .ewp-shop-by-vehicle [data-ew-feature-selector] input,
  .ewp-shop-by-vehicle [data-ew-feature-selector] button {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 48px;
    padding: 12px;
    border: 1px solid var(--ew-steel, #3a3a40);
    border-radius: 2px;
    background: var(--ew-graphite, #161618);
    color: var(--ew-paper, #e8e6e3);
    font: inherit;
    font-size: 16px;
    line-height: 1.4;
  }
  .ewp-shop-by-vehicle [data-ew-feature-selector] button {
    font-weight: 600;
    cursor: pointer;
  }
  .ewp-shop-by-vehicle [data-ew-feature-selector] [data-ew-feature-select] {
    background: var(--accent, #d9ad60);
    color: var(--ew-black, #0a0a0b);
  }
  .ewp-shop-by-vehicle [data-ew-feature-selector] :is(select,input,button):focus-visible {
    outline: 2px solid var(--accent, #d9ad60);
    outline-offset: 3px;
  }
  .ewp-shop-by-vehicle [data-ew-feature-selector] button:disabled {
    opacity: .55;
    cursor: default;
  }
  .ewp-shop-by-vehicle [data-ew-feature-status] {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .ewp-shop-by-vehicle [data-ew-vehicle-results] {
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: 100%;
    margin: 0 auto 24px;
  }
  .ewp-shop-by-vehicle [data-ew-vehicle-results-link] {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}

/* The Garage uses the same native selector; its long options must fit phones. */
@media (max-width: 640px) {
  [data-ew-feature-garage] [data-ew-feature-selector] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    min-width: 0;
  }
  [data-ew-feature-garage] [data-ew-feature-selector] > label {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
  }
  [data-ew-feature-garage] [data-ew-feature-selector] :is(select,input,button) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    font-size: 16px;
  }
}
