/* EVE V12.17.1 — repair desktop compact-choice cards after V12.17 layout normalization */
@media (min-width: 881px) {
  /* V12.17 allowed arbitrary word-breaking; inside 3-column compact grids this
     can collapse labels to one character per line. Restore readable labels. */
  .eve-client-order-builder .eve-v3-choice-copy strong,
  .eve-client-order-builder .eve-v3-choice-copy small {
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .eve-client-order-builder .eve-v3-choice-grid.is-compact .eve-v3-choice {
    grid-template-columns: 26px minmax(0, 1fr) 18px !important;
    gap: 5px !important;
    padding: 8px 7px !important;
    min-height: 66px !important;
  }

  .eve-client-order-builder .eve-v3-choice-grid.is-compact .eve-v3-choice-icon {
    width: 26px !important;
    height: 26px !important;
    border-radius: 9px !important;
    font-size: 10px !important;
  }

  .eve-client-order-builder .eve-v3-choice-grid.is-compact .eve-v3-choice-tick {
    width: 18px !important;
    height: 18px !important;
    font-size: 9px !important;
  }

  .eve-client-order-builder .eve-v3-choice-grid.is-compact .eve-v3-choice-copy {
    min-width: 0 !important;
    text-align: center !important;
  }

  .eve-client-order-builder .eve-v3-choice-grid.is-compact .eve-v3-choice-copy strong {
    white-space: nowrap !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* The helper text adds no value in dense size/page grids and was the main
     source of the vertical-letter effect seen in V12.17. */
  .eve-client-order-builder .eve-v3-choice-grid.is-compact .eve-v3-choice-copy small {
    display: none !important;
  }

  /* Page count already has its own compact 3-column treatment; keep it clean. */
  .eve-client-order-builder #number_of_page .eve-v3-choice-copy strong {
    white-space: nowrap !important;
  }
}
