@magicx-eng/ai-autocomplete-react 0.59.1 → 0.59.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -220,9 +220,9 @@ Skip `<AIAutocompleteDropdown />` and render the suggestions UI yourself. `dropd
220
220
 
221
221
  > **Option icons.** An option may carry an icon: `icon_svg` is inline SVG markup and `icon` its name. The built-in dropdown draws the SVG before the option's text, in the text color. When rendering options yourself, pass `icon_svg` through the exported `sanitizeOptionIconSvg` before inserting it — it reduces the markup to plain vector drawing and returns `null` for anything else — and use `optionLabel(option)` for the text — it is the option's `text` alone; `icon` is the icon's name and is never shown as text, even when `icon_svg` is missing or fails to draw. A picked option's `icon` / `icon_svg` are copied onto its completed parameter, and the chip in the input draws the glyph before its text. Both surfaces can be switched off: `showOptionIcons: false` renders option rows as text only and `showChipIcons: false` renders chips as text only; either way the icon element is omitted rather than hidden.
222
222
 
223
- > **Option pictures and counts.** An option may also carry `image_url` — a picture of the best-matching catalog item offering it — and `item_count`, how many items offer it (each is present only when the server includes it; when it includes counts, the options also arrive ordered by them, most items first; a starting state carries pictures but no counts). The built-in dropdown draws the picture as a square thumbnail before the option's text (in place of its `icon_svg`, so a row never leads with two visuals) and the count as a muted label at the row's trailing edge (`"12 items"`). Icons and pictures are all-or-nothing per list: if any tappable option would draw neither, no row draws one, so a list never mixes rows with and without a leading visual (non-tappable rows don't count). A custom dropdown can apply the same rule with the exported `optionsShowLeadingVisuals(options, showIcons, showImages)`. The unit word after the number is a token: set `--aia-option-count-unit: "sneakers"` to name what is being counted, `--aia-option-count-unit-one: "sneaker"` for a count of 1 (it falls back to the plural token), or `--aia-option-count-unit: ""` for the number alone. When rendering options yourself, pass `image_url` through the exported `optionImageSrc` before using it as an `<img src>` — it returns the URL only when it is `http(s)` and `null` otherwise — and `formatOptionCount(option.item_count)` gives the number the built-in rows print (`null` when there is no count); `optionCountLabel(count, unit?)` appends a unit for a dropdown that prints the word itself (`"item"` / `"items"` by default; one word, a `{ one, other }` pair, or `""` for none). Both surfaces can be switched off: `showOptionImages: false` renders rows without pictures (an option's icon then draws instead) and `showOptionCounts: false` hides the counts. A picked option's `image_url` is copied onto its completed parameter too, and the chip in the input draws it as a small rounded tile before its text, in place of the icon; `showChipImages: false` renders chips without pictures (the icon then draws instead). The tile is sized by `--aia-option-image-size` (28px), rounded by `--aia-option-image-radius` (8.4px), spaced by `--aia-option-image-gap` (8.4px) and filled by `--aia-option-image-bg` (default: `--aia-skeleton-bg`) as a placeholder until its picture loads (or if the picture fails); a loaded picture is scaled to fit rather than cropped and sits on the dropdown's background, and one narrower than the tile is rounded on its own corners by `--aia-option-picture-radius` (4.2px); in a grid with pictures, an icon row draws its glyph at `--aia-option-tile-icon-size` (1.5em) so it holds the picture column; the count reads `--aia-option-count-font-size` (8.4px), `--aia-option-count-color` and `--aia-option-count-opacity` (0.6); the chip's tile reads `--aia-chip-image-size` (1.25em of the chip's font), `--aia-chip-image-radius` (4px) and `--aia-chip-image-bg` (default: `--aia-skeleton-bg`), the placeholder fill shown until the picture loads; a loaded picture narrower than the tile narrows it to the picture's own width, so the radius rounds the picture.
223
+ > **Option pictures and counts.** An option may also carry `image_url` — a picture of the best-matching catalog item offering it — and `item_count`, how many items offer it (each is present only when the server includes it; when it includes counts, the options also arrive ordered by them, most items first; a starting state carries pictures but no counts). The built-in dropdown draws the picture as a square thumbnail before the option's text (in place of its `icon_svg`, so a row never leads with two visuals) and the count as a muted label at the row's trailing edge (`"12 items"`). Icons and pictures are all-or-nothing per list: if any tappable option would draw neither, no row draws one, so a list never mixes rows with and without a leading visual (non-tappable rows don't count). A custom dropdown can apply the same rule with the exported `optionsShowLeadingVisuals(options, showIcons, showImages)`. The unit word after the number is a token: set `--aia-option-count-unit: "sneakers"` to name what is being counted, `--aia-option-count-unit-one: "sneaker"` for a count of 1 (it falls back to the plural token), or `--aia-option-count-unit: ""` for the number alone. When rendering options yourself, pass `image_url` through the exported `optionImageSrc` before using it as an `<img src>` — it returns the URL only when it is `http(s)` and `null` otherwise — and `formatOptionCount(option.item_count)` gives the number the built-in rows print (`null` when there is no count); `optionCountLabel(count, unit?)` appends a unit for a dropdown that prints the word itself (`"item"` / `"items"` by default; one word, a `{ one, other }` pair, or `""` for none). Both surfaces can be switched off: `showOptionImages: false` renders rows without pictures (an option's icon then draws instead) and `showOptionCounts: false` hides the counts. A picked option's `image_url` is copied onto its completed parameter too, and the chip in the input draws it as a small rounded tile before its text, in place of the icon; `showChipImages: false` renders chips without pictures (the icon then draws instead). The tile is sized by `--aia-option-image-size` (40px), rounded by `--aia-option-image-radius` (12px), spaced by `--aia-option-image-gap` (12px) and filled by `--aia-option-image-bg` (default: `--aia-skeleton-bg`) as a placeholder until its picture loads (or if the picture fails); a loaded picture is scaled to fit rather than cropped and sits on the dropdown's background, and one narrower than the tile is rounded on its own corners by `--aia-option-picture-radius` (6px); in a grid with pictures, an icon row draws its glyph at `--aia-option-tile-icon-size` (1.5em) so it holds the picture column; the count reads `--aia-option-count-font-size` (12px), `--aia-option-count-color` and `--aia-option-count-opacity` (0.6); the chip's tile reads `--aia-chip-image-size` (1.25em of the chip's font), `--aia-chip-image-radius` (4px) and `--aia-chip-image-bg` (default: `--aia-skeleton-bg`), the placeholder fill shown until the picture loads; a loaded picture narrower than the tile narrows it to the picture's own width, so the radius rounds the picture.
224
224
 
225
- > **Parameter names under options.** An option that completes the word being typed (the server's `traditional_autocomplete` suggestion) can read the same as an option of another parameter, so the built-in dropdown draws the name of the parameter it answers under its text, muted and smaller (`Flavor`, `Subcategory`); the SDK sets it as `parameterLabel` from the option's `parameter`. It reads `--aia-option-parameter-font-size` (8.4px), `--aia-option-parameter-color` and `--aia-option-parameter-opacity` (0.6).
225
+ > **Parameter names under options.** An option that completes the word being typed (the server's `traditional_autocomplete` suggestion) can read the same as an option of another parameter, so the built-in dropdown draws the name of the parameter it answers under its text, muted and smaller (`Flavor`, `Subcategory`); the SDK sets it as `parameterLabel` from the option's `parameter`. It reads `--aia-option-parameter-font-size` (12px), `--aia-option-parameter-color` and `--aia-option-parameter-opacity` (0.6).
226
226
 
227
227
  ```tsx
228
228
  import { useAIAutocomplete } from "@magicx-eng/ai-autocomplete-react";
package/REFERENCE.md CHANGED
@@ -46,9 +46,9 @@ Pass `showProducts={false}` to render no strip at all. The catalog report
46
46
  `productsLayout="list"` stacks the same cards as full-width rows (thumbnail
47
47
  on the left, title, vendor and price on the right) for results that read as
48
48
  a list (courses, listings, documents) rather than products on a shelf. The
49
- column scrolls vertically inside `--aia-product-list-max-height` (224px by
50
- default); `--aia-product-list-media-size` (30.8px) sizes the thumbnail and
51
- `--aia-product-list-gap` (1.4px) the space between rows. `"row"`, the default,
49
+ column scrolls vertically inside `--aia-product-list-max-height` (320px by
50
+ default); `--aia-product-list-media-size` (44px) sizes the thumbnail and
51
+ `--aia-product-list-gap` (2px) the space between rows. `"row"`, the default,
52
52
  is the horizontal strip. Changing the prop re-lays the strip out at once, and
53
53
  `<AIAutocompleteDropdown>` takes the same prop in Tier 2.
54
54
 
@@ -276,7 +276,7 @@ and ignores further presses; once it resolves the cart turns into a check
276
276
  through "adding" to "added". A rejection puts the button back at rest — show your own error. A handler that returns nothing goes
277
277
  straight to "added". The button is labelled "Add to cart: {title}" in the
278
278
  widget language, reachable by Tab and pressed with Enter or Space. Theme it
279
- with `--aia-product-cart-size` (19.6px), `--aia-product-cart-bg` and
279
+ with `--aia-product-cart-size` (28px), `--aia-product-cart-bg` and
280
280
  `--aia-product-cart-color`; its focus ring uses `--aia-product-focus-ring`.
281
281
  The button is a `[data-aia-product-cart]` element, and a card that has one
282
282
  carries `data-aia-product-has-cart`.
@@ -532,11 +532,11 @@ The full input also accepts `--aia-input-radius` and `--aia-written-text-font-we
532
532
  | `--aia-pill-bg` | `#bdbdbd` | `#bdbdbd` | Pill background |
533
533
  | `--aia-pill-color` | `#000000` | `#ffffff` | Pill text |
534
534
  | `--aia-pill-font-size` | `19px` | `19px` | Pill font size |
535
- | `--aia-param-label-font-size` | `9.45px` | `9.45px` | Font size of the options box's header label: the parameter the options answer, the pill marked `[data-aia-pill-active]`. Style that label through `[data-aia-pill][data-aia-pill-active]`. |
535
+ | `--aia-param-label-font-size` | `13.5px` | `13.5px` | Font size of the options box's header label: the parameter the options answer, the pill marked `[data-aia-pill-active]`. Style that label through `[data-aia-pill][data-aia-pill-active]`. |
536
536
  | `--aia-option-bg` | `transparent` | `transparent` | Highlighted option background |
537
537
  | `--aia-option-color` | `#000000` | `#ffffff` | Option text |
538
538
  | `--aia-option-color-selected` | `#000000` | `#ffffff` | Highlighted option text |
539
- | `--aia-option-font-size` | `11.2px` | `11.2px` | Option font size |
539
+ | `--aia-option-font-size` | `16px` | `16px` | Option font size |
540
540
  | `--aia-written-text-color` | `#000000` | `#ffffff` | Input text |
541
541
  | `--aia-written-text-font-size` | `19px` | `19px` | Input text font size |
542
542
  | `--aia-written-text-font-weight` | `300` | `300` | Written text weight in the full input. Completed chips keep their own typography. |
@@ -557,14 +557,14 @@ The full input also accepts `--aia-input-radius` and `--aia-written-text-font-we
557
557
  | `--aia-scrollbar-track` | `rgba(15, 23, 42, 0.05)` | `rgba(255, 255, 255, 0.08)` | The floating options box's thin scrollbar track, shown while a long list overflows. |
558
558
  | `--aia-scrollbar-thumb` | `rgba(15, 23, 42, 0.22)` | `rgba(255, 255, 255, 0.28)` | That scrollbar's thumb. |
559
559
  | `--aia-streak-rgb` | `99, 102, 241` | `255, 255, 255` | Comma-separated RGB triplet tinting the datepicker's pressed cell, and its selected cell when `--aia-date-selected-bg` is unset. The today ring uses `--aia-date-today-ring`, not this. |
560
- | `--aia-product-card-width` | `81.2px` | `81.2px` | Width of a product card in the strip. The media tile is square, so this also sets its height. |
561
- | `--aia-product-gap` | `5.6px` | `5.6px` | Gap between product cards. |
560
+ | `--aia-product-card-width` | `116px` | `116px` | Width of a product card in the strip. The media tile is square, so this also sets its height. |
561
+ | `--aia-product-gap` | `8px` | `8px` | Gap between product cards. |
562
562
  | `--aia-product-bg` | `transparent` | `transparent` | Product card background. |
563
563
  | `--aia-product-bg-active` | `--aia-option-bg` | `--aia-option-bg` | Product card background on hover. |
564
564
  | `--aia-product-media-bg` | `--aia-skeleton-bg` | `--aia-skeleton-bg` | Placeholder fill of the product tile: shown until the photo loads, and behind both fallback tiles (placeholder pictogram or title initial) used when an image URL is missing, blank or fails to load. Once a photo loads the tile is transparent. |
565
565
  | `--aia-scroll-arrow-color` | `--aia-option-color` | `--aia-option-color` | Chevron color of the arrow (`--aia-scroll-arrow-color-hover` on hover). `optionsStyle: "classic"` only: the floating box draws a thin scrollbar instead (`--aia-scrollbar-*`). |
566
566
  | `--aia-placeholder-fade` | `120ms` | `120ms` | Fade-out of the outgoing placeholder phrase when the starting-state placeholder changes (the incoming one types itself in). |
567
- | `--aia-product-image-radius` | `5.6px` | `5.6px` | Corner radius of a product photo narrower than its square tile (a tall one), which is scaled to fit rather than cropped. A photo that fills the tile takes the tile's own 5.6px corners. |
567
+ | `--aia-product-image-radius` | `8px` | `8px` | Corner radius of a product photo narrower than its square tile (a tall one), which is scaled to fit rather than cropped. A photo that fills the tile takes the tile's own 8px corners. |
568
568
  | `--aia-product-placeholder-image` | storefront pictogram | storefront pictogram | The pictogram used by `productImageFallback: "image"` (the default) when an image URL is missing, blank or fails to load. Defaults to a two-tone storefront inlined as a data URI. Set any `url(...)` to swap it; it is centered and contained over `--aia-product-media-bg`. Does not affect `"initial"` tiles. |
569
569
  | `--aia-product-title-color` | `--aia-option-color-selected` | `--aia-option-color-selected` | Product title text. Follows the option colors by default, so theming the panel moves suggestions and products together. |
570
570
  | `--aia-product-price-color` | `--aia-option-color-selected` | `--aia-option-color-selected` | Product price text. |
@@ -573,10 +573,10 @@ The full input also accepts `--aia-input-radius` and `--aia-written-text-font-we
573
573
  | `--aia-product-vendor-color` | `--aia-option-color` | `--aia-option-color` | Product vendor line. |
574
574
  | `--aia-product-focus-ring` | `--aia-option-color-selected` | `--aia-option-color-selected` | Focus ring drawn on a keyboard-focused card. |
575
575
  | `--aia-products-label-color` | `--aia-option-color` | `--aia-option-color` | "Items" section label. |
576
- | `--aia-product-title-font-size` | `8.4px` | `8.4px` | Product title font size. |
577
- | `--aia-product-price-font-size` | `7.7px` | `7.7px` | Product price font size. |
578
- | `--aia-product-vendor-font-size` | `7px` | `7px` | Product vendor font size. |
579
- | `--aia-products-label-font-size` | `7.7px` | `7.7px` | Section label font size. |
576
+ | `--aia-product-title-font-size` | `12px` | `12px` | Product title font size. |
577
+ | `--aia-product-price-font-size` | `11px` | `11px` | Product price font size. |
578
+ | `--aia-product-vendor-font-size` | `10px` | `10px` | Product vendor font size. |
579
+ | `--aia-products-label-font-size` | `11px` | `11px` | Section label font size. |
580
580
  | `--aia-date-panel-width` | `312px` | `312px` | Max width of the whole dropdown panel while the calendar is up — the panel narrows to calendar size. |
581
581
  | `--aia-date-cell-size` | `26px` | `26px` | Size of a day's square — the box that carries the highlight, the today ring and the selected fill. |
582
582
  | `--aia-date-row-height` | `28px` | `28px` | Height of one week row. Lower it to fit a 6-week month in a shorter dropdown. |
package/dist/index.js CHANGED
@@ -624,7 +624,7 @@
624
624
  --aia-scrollbar-track: rgba(15, 23, 42, 0.05);
625
625
  --aia-scrollbar-thumb: rgba(15, 23, 42, 0.22);
626
626
  --aia-option-color-selected: var(--aia-primitive-neutral-0);
627
- --aia-option-font-size: 11.2px;
627
+ --aia-option-font-size: 16px;
628
628
 
629
629
  --aia-written-text-color: var(--aia-primitive-neutral-0);
630
630
  /* The typed query keeps its full size; only the options box below it is
@@ -699,7 +699,7 @@
699
699
  --aia-scrollbar-track: rgba(255, 255, 255, 0.08);
700
700
  --aia-scrollbar-thumb: rgba(255, 255, 255, 0.28);
701
701
  --aia-option-color-selected: var(--aia-primitive-neutral-1000);
702
- --aia-option-font-size: 11.2px;
702
+ --aia-option-font-size: 16px;
703
703
 
704
704
  --aia-written-text-color: var(--aia-primitive-neutral-1000);
705
705
  --aia-written-text-font-size: 16px;
@@ -786,7 +786,7 @@
786
786
  justify-content: flex-start;
787
787
  border-inline-width: 0;
788
788
  padding-inline: 0;
789
- padding-block: 3.5px;
789
+ padding-block: 5px;
790
790
  }
791
791
 
792
792
  /* The reserved band the footer overlaps. Declared here, apart from the grid
@@ -1015,7 +1015,7 @@
1015
1015
  the third row. The planned cap (--aia-grid-max-height) still wins when it
1016
1016
  is smaller: fewer than three rows of options. */
1017
1017
  [data-aia-dropdown][aria-multiselectable="true"] .aia-grid[data-scroll] {
1018
- max-height: min(var(--aia-grid-max-height, 84px), calc(3 * var(--aia-option-row-height, 25.9px)));
1018
+ max-height: min(var(--aia-grid-max-height, 120px), calc(3 * var(--aia-option-row-height, 37px)));
1019
1019
  }
1020
1020
 
1021
1021
  /* Fitted to the viewport, every other grid hands its scrolling to the panel,
@@ -1024,8 +1024,8 @@
1024
1024
  so Done stays in view. */
1025
1025
  [data-aia-dropdown][data-aia-fit][aria-multiselectable="true"] .aia-grid[data-scroll] {
1026
1026
  flex-shrink: 1;
1027
- min-height: var(--aia-option-row-height, 25.9px);
1028
- max-height: min(var(--aia-grid-max-height, 84px), calc(3 * var(--aia-option-row-height, 25.9px)));
1027
+ min-height: var(--aia-option-row-height, 37px);
1028
+ max-height: min(var(--aia-grid-max-height, 120px), calc(3 * var(--aia-option-row-height, 37px)));
1029
1029
  overflow-y: auto;
1030
1030
  }
1031
1031
 
@@ -1068,7 +1068,7 @@
1068
1068
  [data-aia-dropdown] [data-aia-pillbar] [data-aia-pill][data-aia-pill-active] {
1069
1069
  text-transform: none;
1070
1070
  letter-spacing: normal;
1071
- font-size: var(--aia-param-label-font-size, 12px);
1071
+ font-size: var(--aia-param-label-font-size, 17px);
1072
1072
  font-weight: 500;
1073
1073
  opacity: 1;
1074
1074
  }
@@ -1087,17 +1087,17 @@
1087
1087
  text-transform: uppercase;
1088
1088
  }
1089
1089
  [data-aia-dropdown] [data-aia-pillbar] [data-aia-skip] {
1090
- padding-inline: 5.6px;
1091
- font-size: var(--aia-skip-font-size, 9.45px);
1090
+ padding-inline: 8px;
1091
+ font-size: var(--aia-skip-font-size, 13.5px);
1092
1092
  }
1093
- /* Roomier rows: 10.5px above and below each option instead of 5.6px. The
1093
+ /* Roomier rows: 15px above and below each option instead of 8px. The
1094
1094
  row height feeds the visible-rows cap (planOptionsGrid), so it moves with
1095
1095
  the padding; picture and parameter-line rows add the same padding to their
1096
1096
  own heights. Tokens on the themed root at zero specificity, like the rest,
1097
1097
  so a consumer's value wins and the classic block below can restore its own. */
1098
1098
  :where(.magicx-aia) {
1099
- --aia-option-padding-block: 10.5px;
1100
- --aia-option-row-height: calc(14.7px + 2 * var(--aia-option-padding-block));
1099
+ --aia-option-padding-block: 15px;
1100
+ --aia-option-row-height: calc(21px + 2 * var(--aia-option-padding-block));
1101
1101
  }
1102
1102
  /* The panel hugs its options (panelHugWidth): as wide as the widest option
1103
1103
  times the columns, plus the panel's padding and 36px of breathing room,
@@ -1497,15 +1497,15 @@
1497
1497
  align-items: center;
1498
1498
  margin-inline-start: auto;
1499
1499
  flex-shrink: 0;
1500
- padding: 3.5px 5.6px;
1500
+ padding: 5px 8px;
1501
1501
  border: none;
1502
1502
  /* Matches the completed-param chip radius, so the hover fill reads as a
1503
1503
  soft rectangle rather than a capsule. */
1504
- border-radius: 4.2px;
1504
+ border-radius: 6px;
1505
1505
  background: transparent;
1506
1506
  font-family: inherit;
1507
- font-size: var(--aia-skip-font-size, 9.45px);
1508
- line-height: 12.6px;
1507
+ font-size: var(--aia-skip-font-size, 13.5px);
1508
+ line-height: 18px;
1509
1509
  color: var(--aia-skip-color, var(--aia-footer-hint-color, #505050));
1510
1510
  cursor: pointer;
1511
1511
  white-space: nowrap;
@@ -2423,7 +2423,7 @@
2423
2423
  .aia-section-Hugfg {
2424
2424
  display: flex;
2425
2425
  flex-direction: column;
2426
- gap: 4.2px;
2426
+ gap: 6px;
2427
2427
  /* The option text sits 10px inside the dropdown's padding edge (the
2428
2428
  option's own padding), so the section carries the same 10px and its
2429
2429
  label lands on the option text's left edge \u2014 which the dropdown in turn
@@ -2434,9 +2434,9 @@
2434
2434
 
2435
2435
  .aia-label-nuc93 {
2436
2436
  font-family: inherit;
2437
- font-size: var(--aia-products-label-font-size, 7.7px);
2437
+ font-size: var(--aia-products-label-font-size, 11px);
2438
2438
  font-weight: 500;
2439
- line-height: 12.6px;
2439
+ line-height: 18px;
2440
2440
  letter-spacing: 0.02em;
2441
2441
  color: var(
2442
2442
  --aia-products-label-color,
@@ -2450,16 +2450,16 @@
2450
2450
  a trackpad fling at either end from chaining out to the page. */
2451
2451
  .aia-row-WDVBX {
2452
2452
  display: flex;
2453
- gap: var(--aia-product-gap, 5.6px);
2453
+ gap: var(--aia-product-gap, 8px);
2454
2454
  min-width: 0;
2455
2455
  overflow-x: auto;
2456
2456
  overflow-y: hidden;
2457
2457
  overscroll-behavior-x: contain;
2458
- padding-bottom: 1.4px;
2458
+ padding-bottom: 2px;
2459
2459
  /* Pull the row out by the card's own 6px padding so the first card's
2460
2460
  image tile \u2014 not its hover fill \u2014 starts on the label's left edge, the
2461
2461
  same way the option's highlight fill hangs outside its text. */
2462
- margin-inline: -4.2px;
2462
+ margin-inline: -6px;
2463
2463
  /* Hide the scrollbar chrome across all three engines while leaving the box
2464
2464
  scrollable by trackpad, touch and keyboard. A mouse wheel is vertical and
2465
2465
  would otherwise have no way through a row with no scrollbar to grab, so
@@ -2477,10 +2477,10 @@
2477
2477
  flex: 0 0 auto;
2478
2478
  display: flex;
2479
2479
  flex-direction: column;
2480
- gap: 4.2px;
2481
- width: var(--aia-product-card-width, 81.2px);
2482
- padding: 4.2px;
2483
- border-radius: 7px;
2480
+ gap: 6px;
2481
+ width: var(--aia-product-card-width, 116px);
2482
+ padding: 6px;
2483
+ border-radius: 10px;
2484
2484
  background: var(--aia-product-bg, transparent);
2485
2485
  /* Explicit, never inherited \u2014 see the file header. */
2486
2486
  color: var(--aia-option-color, var(--aia-color-text-muted, #c1c4cb));
@@ -2513,7 +2513,7 @@
2513
2513
  position: relative;
2514
2514
  width: 100%;
2515
2515
  aspect-ratio: 1 / 1;
2516
- border-radius: 5.6px;
2516
+ border-radius: 8px;
2517
2517
  overflow: hidden;
2518
2518
  background: var(--aia-product-media-bg, var(--aia-skeleton-bg, rgba(189, 189, 189, 0.25)));
2519
2519
  }
@@ -2538,7 +2538,7 @@
2538
2538
  max-width: 100%;
2539
2539
  height: 100%;
2540
2540
  margin: 0 auto;
2541
- border-radius: var(--aia-product-image-radius, 5.6px);
2541
+ border-radius: var(--aia-product-image-radius, 8px);
2542
2542
  object-fit: contain;
2543
2543
  }
2544
2544
 
@@ -2551,7 +2551,7 @@
2551
2551
  align-items: center;
2552
2552
  justify-content: center;
2553
2553
  color: var(--aia-product-title-color, var(--aia-option-color-selected, currentColor));
2554
- font-size: 16.8px;
2554
+ font-size: 24px;
2555
2555
  font-weight: 600;
2556
2556
  line-height: 1;
2557
2557
  }
@@ -2574,14 +2574,14 @@
2574
2574
  .aia-body-ly032 {
2575
2575
  display: flex;
2576
2576
  flex-direction: column;
2577
- gap: 1.4px;
2577
+ gap: 2px;
2578
2578
  min-width: 0;
2579
2579
  }
2580
2580
 
2581
2581
  .aia-vendor-Gvu7G {
2582
2582
  font-family: inherit;
2583
- font-size: var(--aia-product-vendor-font-size, 7px);
2584
- line-height: 9.8px;
2583
+ font-size: var(--aia-product-vendor-font-size, 10px);
2584
+ line-height: 14px;
2585
2585
  color: var(
2586
2586
  --aia-product-vendor-color,
2587
2587
  var(--aia-option-color, var(--aia-color-text-muted, #c1c4cb))
@@ -2595,9 +2595,9 @@
2595
2595
 
2596
2596
  .aia-title-gCNmq {
2597
2597
  font-family: inherit;
2598
- font-size: var(--aia-product-title-font-size, 8.4px);
2598
+ font-size: var(--aia-product-title-font-size, 12px);
2599
2599
  font-weight: 400;
2600
- line-height: 11.2px;
2600
+ line-height: 16px;
2601
2601
  /* The card's most prominent text uses the same token the *highlighted*
2602
2602
  option text does, so it stays legible on any --aia-surface a consumer
2603
2603
  sets \u2014 light or dark \u2014 without a second theming control. */
@@ -2614,9 +2614,9 @@
2614
2614
 
2615
2615
  .aia-price-gULcE {
2616
2616
  font-family: inherit;
2617
- font-size: var(--aia-product-price-font-size, 7.7px);
2617
+ font-size: var(--aia-product-price-font-size, 11px);
2618
2618
  font-weight: 500;
2619
- line-height: 10.5px;
2619
+ line-height: 15px;
2620
2620
  color: var(
2621
2621
  --aia-product-price-color,
2622
2622
  var(--aia-option-color-selected, var(--aia-color-text-default, #fff))
@@ -2627,7 +2627,7 @@
2627
2627
  display: flex;
2628
2628
  flex-wrap: wrap;
2629
2629
  align-items: baseline;
2630
- column-gap: 2.8px;
2630
+ column-gap: 4px;
2631
2631
  }
2632
2632
 
2633
2633
  /* The price before a markdown, struck through after the price, on the same
@@ -2645,10 +2645,10 @@
2645
2645
  reads on any photo, light or dark, and on either panel surface. */
2646
2646
  .aia-badge-j9Hcd {
2647
2647
  position: absolute;
2648
- top: var(--aia-product-badge-inset, 8.4px);
2649
- left: var(--aia-product-badge-inset, 8.4px);
2650
- padding: 2.1px 4.2px;
2651
- border-radius: 2.8px;
2648
+ top: var(--aia-product-badge-inset, 12px);
2649
+ left: var(--aia-product-badge-inset, 12px);
2650
+ padding: 3px 6px;
2651
+ border-radius: 4px;
2652
2652
  background: var(--aia-product-badge-bg, rgba(255, 255, 255, 0.94));
2653
2653
  color: var(--aia-product-badge-color, #1f2328);
2654
2654
  /* A hairline ring keeps the chip's edge on a pale image or a light panel. */
@@ -2656,7 +2656,7 @@
2656
2656
  0 0 0 1px rgba(0, 0, 0, 0.08),
2657
2657
  0 1px 2px rgba(0, 0, 0, 0.18);
2658
2658
  font-family: inherit;
2659
- font-size: var(--aia-product-badge-font-size, 6.3px);
2659
+ font-size: var(--aia-product-badge-font-size, 9px);
2660
2660
  font-weight: 600;
2661
2661
  line-height: 1;
2662
2662
  letter-spacing: 0.08em;
@@ -2678,24 +2678,24 @@
2678
2678
  fill the square (--aia-product-photo-fill-x / -y, set on the card when
2679
2679
  the photo loads; 1, the tile's own corner, until then). */
2680
2680
  top: calc(
2681
- var(--aia-product-card-width, 81.2px) -
2682
- 8.4px -
2683
- var(--aia-product-cart-size, 19.6px) -
2684
- (var(--aia-product-card-width, 81.2px) - 8.4px) *
2681
+ var(--aia-product-card-width, 116px) -
2682
+ 12px -
2683
+ var(--aia-product-cart-size, 28px) -
2684
+ (var(--aia-product-card-width, 116px) - 12px) *
2685
2685
  (1 - var(--aia-product-photo-fill-y, 1)) /
2686
2686
  2
2687
2687
  );
2688
2688
  right: calc(
2689
- 8.4px +
2690
- (var(--aia-product-card-width, 81.2px) - 8.4px) *
2689
+ 12px +
2690
+ (var(--aia-product-card-width, 116px) - 12px) *
2691
2691
  (1 - var(--aia-product-photo-fill-x, 1)) /
2692
2692
  2
2693
2693
  );
2694
2694
  display: flex;
2695
2695
  align-items: center;
2696
2696
  justify-content: center;
2697
- width: var(--aia-product-cart-size, 19.6px);
2698
- height: var(--aia-product-cart-size, 19.6px);
2697
+ width: var(--aia-product-cart-size, 28px);
2698
+ height: var(--aia-product-cart-size, 28px);
2699
2699
  border-radius: 999px;
2700
2700
  background: var(--aia-product-cart-bg, rgba(255, 255, 255, 0.94));
2701
2701
  color: var(--aia-product-cart-color, #1f2328);
@@ -2719,8 +2719,8 @@
2719
2719
 
2720
2720
  .aia-cart-kSlqU svg {
2721
2721
  display: block;
2722
- width: 11.2px;
2723
- height: 11.2px;
2722
+ width: 16px;
2723
+ height: 16px;
2724
2724
  fill: none;
2725
2725
  stroke: currentColor;
2726
2726
  stroke-width: 2;
@@ -2803,8 +2803,8 @@
2803
2803
  occurrence, and these selectors contain the base selectors. */
2804
2804
  .aia-section-Hugfg[data-aia-products-layout="list"] .aia-row-WDVBX {
2805
2805
  flex-direction: column;
2806
- gap: var(--aia-product-list-gap, 1.4px);
2807
- max-height: var(--aia-product-list-max-height, 224px);
2806
+ gap: var(--aia-product-list-gap, 2px);
2807
+ max-height: var(--aia-product-list-max-height, 320px);
2808
2808
  overflow-x: hidden;
2809
2809
  overflow-y: auto;
2810
2810
  overscroll-behavior-y: contain;
@@ -2813,17 +2813,17 @@
2813
2813
  .aia-section-Hugfg[data-aia-products-layout="list"] .aia-card-JBGYT {
2814
2814
  flex-direction: row;
2815
2815
  align-items: center;
2816
- gap: 7px;
2816
+ gap: 10px;
2817
2817
  width: auto;
2818
- padding: 4.2px 5.6px;
2818
+ padding: 6px 8px;
2819
2819
  }
2820
2820
 
2821
2821
  /* A fixed square thumbnail: width and height together, so the row's height
2822
2822
  is the tile's, not the card width's. */
2823
2823
  .aia-section-Hugfg[data-aia-products-layout="list"] .aia-media-RrbGe {
2824
2824
  flex: 0 0 auto;
2825
- width: var(--aia-product-list-media-size, 30.8px);
2826
- height: var(--aia-product-list-media-size, 30.8px);
2825
+ width: var(--aia-product-list-media-size, 44px);
2826
+ height: var(--aia-product-list-media-size, 44px);
2827
2827
  }
2828
2828
 
2829
2829
  .aia-section-Hugfg[data-aia-products-layout="list"] .aia-body-ly032 {
@@ -2835,18 +2835,18 @@
2835
2835
  match, so its bottom edge is half a thumbnail below the card's centre; its
2836
2836
  left edge is the card's 8px inline padding. */
2837
2837
  .aia-section-Hugfg[data-aia-products-layout="list"] .aia-badge-j9Hcd {
2838
- top: calc(50% + var(--aia-product-list-media-size, 30.8px) / 2);
2839
- left: 5.6px;
2840
- width: var(--aia-product-list-media-size, 30.8px);
2838
+ top: calc(50% + var(--aia-product-list-media-size, 44px) / 2);
2839
+ left: 8px;
2840
+ width: var(--aia-product-list-media-size, 44px);
2841
2841
  transform: translateY(-100%);
2842
- padding: 1.4px 0;
2843
- border-radius: 0 0 5.6px 5.6px;
2842
+ padding: 2px 0;
2843
+ border-radius: 0 0 8px 8px;
2844
2844
  /* A dark scrim rather than the light chip: a light banner at a tile's edge
2845
2845
  merges with a light panel and reads as a cropped photo. */
2846
2846
  background: var(--aia-product-badge-list-bg, rgba(17, 17, 17, 0.72));
2847
2847
  color: var(--aia-product-badge-list-color, #fff);
2848
2848
  box-shadow: none;
2849
- font-size: var(--aia-product-badge-list-font-size, 4.9px);
2849
+ font-size: var(--aia-product-badge-list-font-size, 7px);
2850
2850
  letter-spacing: 0.02em;
2851
2851
  text-align: center;
2852
2852
  }
@@ -2855,7 +2855,7 @@
2855
2855
  column stops short of it. */
2856
2856
  .aia-section-Hugfg[data-aia-products-layout="list"] .aia-cart-kSlqU {
2857
2857
  top: 50%;
2858
- right: 5.6px;
2858
+ right: 8px;
2859
2859
  transform: translateY(-50%);
2860
2860
  }
2861
2861
 
@@ -2864,7 +2864,7 @@
2864
2864
  }
2865
2865
 
2866
2866
  .aia-section-Hugfg[data-aia-products-layout="list"] .aia-card-JBGYT[data-aia-product-has-cart] {
2867
- padding-right: calc(var(--aia-product-cart-size, 19.6px) + 11.2px);
2867
+ padding-right: calc(var(--aia-product-cart-size, 28px) + 16px);
2868
2868
  }
2869
2869
 
2870
2870
  /* Classic options box (optionsStyle: "classic"): the panel as it was
@@ -3031,7 +3031,7 @@
3031
3031
  /* The scroll box's reserved band (--aia-grid-scroll-* / --aia-grid-overlap-*)
3032
3032
  is deliberately NOT declared here \u2014 see the rule in
3033
3033
  appearance.css for why. */
3034
- max-height: var(--aia-grid-max-height, 84px);
3034
+ max-height: var(--aia-grid-max-height, 120px);
3035
3035
  overflow-y: auto;
3036
3036
  overscroll-behavior: contain;
3037
3037
  scrollbar-width: none;
@@ -3065,16 +3065,16 @@
3065
3065
  the same baseline at the top edge of the cell. */
3066
3066
  align-items: flex-start;
3067
3067
  font-family: inherit;
3068
- font-size: var(--aia-option-font-size, 11.2px);
3068
+ font-size: var(--aia-option-font-size, 16px);
3069
3069
  font-weight: 450;
3070
- line-height: 14.7px;
3070
+ line-height: 21px;
3071
3071
  color: var(--aia-option-color, var(--aia-color-text-muted, #c1c4cb));
3072
3072
  white-space: normal;
3073
3073
  word-break: break-word;
3074
- /* 5.6px radius on the highlighted fill (--aia-option-bg), matching the Figma
3075
- SuggestionItem selection at 70%. The 5.6px/10px inset is the item's own padding. */
3076
- border-radius: 5.6px;
3077
- padding: var(--aia-option-padding-block, 5.6px) 10px;
3074
+ /* 8px radius on the highlighted fill (--aia-option-bg), matching the Figma
3075
+ SuggestionItem selection. The 8px/10px inset is the item's own padding. */
3076
+ border-radius: 8px;
3077
+ padding: var(--aia-option-padding-block, 8px) 10px;
3078
3078
  /* No entrance animation on the row itself \u2014 deliberately. The row is the
3079
3079
  tappable element, and iOS Safari drops a tap on a scripted-clickable
3080
3080
  element (a div with a click handler; a native button is exempt) whose
@@ -3160,8 +3160,8 @@
3160
3160
  }
3161
3161
 
3162
3162
  .aia-tag-e3Fwe {
3163
- font-size: 7.7px;
3164
- margin-left: 4.2px;
3163
+ font-size: 11px;
3164
+ margin-left: 6px;
3165
3165
  opacity: 0.5;
3166
3166
  }
3167
3167
 
@@ -3233,9 +3233,9 @@
3233
3233
  text box, so a hanging indent never moves it. */
3234
3234
  .aia-parameter-Dt2zF {
3235
3235
  display: block;
3236
- font-size: var(--aia-option-parameter-font-size, 8.4px);
3236
+ font-size: var(--aia-option-parameter-font-size, 12px);
3237
3237
  font-weight: 400;
3238
- line-height: 11.2px;
3238
+ line-height: 16px;
3239
3239
  text-indent: 0;
3240
3240
  color: var(--aia-option-parameter-color, inherit);
3241
3241
  opacity: var(--aia-option-parameter-opacity, 0.6);
@@ -3255,8 +3255,8 @@
3255
3255
  .aia-icon-Qw938 {
3256
3256
  display: inline-flex;
3257
3257
  align-items: center;
3258
- height: 14.7px; /* = the option's line-height */
3259
- margin-right: 5.6px;
3258
+ height: 21px; /* = the option's line-height */
3259
+ margin-right: 8px;
3260
3260
  vertical-align: top;
3261
3261
  /* Own compositing layer. The row (entrance) and the chip (promotion fade)
3262
3262
  animate on a layer WebKit drops when the animation ends; content drawn at
@@ -3279,8 +3279,8 @@
3279
3279
  (blockified), so text-indent applies to it directly. Skeleton rows keep
3280
3280
  it too: their icon is hidden but still occupies its column. */
3281
3281
  .aia-content-T-Qba:not(:has(.aia-count-IpYbQ)):has(.aia-icon-Qw938) {
3282
- padding-left: calc(1em + 5.6px);
3283
- text-indent: calc(-1em - 5.6px);
3282
+ padding-left: calc(1em + 8px);
3283
+ text-indent: calc(-1em - 8px);
3284
3284
  }
3285
3285
 
3286
3286
  /* --- Option pictures and counts ---
@@ -3313,15 +3313,15 @@
3313
3313
  loads) and stays if it never does. */
3314
3314
  .aia-content-T-Qba:has(.aia-image-YZAbO) {
3315
3315
  align-items: center;
3316
- gap: var(--aia-option-image-gap, 8.4px);
3316
+ gap: var(--aia-option-image-gap, 12px);
3317
3317
  }
3318
3318
 
3319
3319
  .aia-image-YZAbO {
3320
3320
  flex: 0 0 auto;
3321
3321
  display: block;
3322
- width: var(--aia-option-image-size, 28px);
3323
- height: var(--aia-option-image-size, 28px);
3324
- border-radius: var(--aia-option-image-radius, 8.4px);
3322
+ width: var(--aia-option-image-size, 40px);
3323
+ height: var(--aia-option-image-size, 40px);
3324
+ border-radius: var(--aia-option-image-radius, 12px);
3325
3325
  overflow: hidden;
3326
3326
  background: var(--aia-option-image-bg, var(--aia-skeleton-bg, rgba(189, 189, 189, 0.083)));
3327
3327
  }
@@ -3346,7 +3346,7 @@
3346
3346
  max-width: 100%;
3347
3347
  height: 100%;
3348
3348
  margin: 0 auto;
3349
- border-radius: var(--aia-option-picture-radius, 4.2px);
3349
+ border-radius: var(--aia-option-picture-radius, 6px);
3350
3350
  object-fit: contain;
3351
3351
  }
3352
3352
 
@@ -3363,10 +3363,10 @@
3363
3363
  .aia-count-IpYbQ {
3364
3364
  flex: 0 0 auto;
3365
3365
  margin-left: auto;
3366
- padding-left: 8.4px;
3367
- font-size: var(--aia-option-count-font-size, 8.4px);
3366
+ padding-left: 12px;
3367
+ font-size: var(--aia-option-count-font-size, 12px);
3368
3368
  font-weight: 400;
3369
- line-height: 14.7px; /* = the option's line-height */
3369
+ line-height: 21px; /* = the option's line-height */
3370
3370
  font-variant-numeric: tabular-nums;
3371
3371
  white-space: nowrap;
3372
3372
  color: var(--aia-option-count-color, inherit);
@@ -3392,7 +3392,7 @@
3392
3392
  (\`--aia-grid-max-height\`) does not cut the last row. Before the picture rule,
3393
3393
  which wins when a group has both. */
3394
3394
  [data-aia-group]:has(.aia-parameter-Dt2zF) {
3395
- --aia-option-row-height: calc(25.9px + 2 * var(--aia-option-padding-block, 5.6px));
3395
+ --aia-option-row-height: calc(37px + 2 * var(--aia-option-padding-block, 8px));
3396
3396
  }
3397
3397
 
3398
3398
  /* A grid of picture rows is taller per row: the visible-rows cap
@@ -3401,9 +3401,9 @@
3401
3401
  same number of rows shows before the list scrolls. */
3402
3402
  [data-aia-group]:has(.aia-image-YZAbO) {
3403
3403
  --aia-option-row-height: calc(
3404
- var(--aia-option-image-size, 28px) +
3404
+ var(--aia-option-image-size, 40px) +
3405
3405
  2 *
3406
- var(--aia-option-padding-block, 5.6px)
3406
+ var(--aia-option-padding-block, 8px)
3407
3407
  );
3408
3408
  }
3409
3409
 
@@ -3418,9 +3418,9 @@
3418
3418
  display: flex;
3419
3419
  flex: 1 1 auto;
3420
3420
  align-items: center;
3421
- gap: var(--aia-option-image-gap, 8.4px);
3421
+ gap: var(--aia-option-image-gap, 12px);
3422
3422
  min-width: 0;
3423
- min-height: var(--aia-option-image-size, 28px);
3423
+ min-height: var(--aia-option-image-size, 40px);
3424
3424
  padding-left: 0;
3425
3425
  text-indent: 0;
3426
3426
  }
@@ -3428,8 +3428,8 @@
3428
3428
  [data-aia-group]:has(.aia-image-YZAbO) .aia-content-T-Qba:not(:has(.aia-image-YZAbO)) .aia-icon-Qw938 {
3429
3429
  flex: 0 0 auto;
3430
3430
  justify-content: center;
3431
- width: var(--aia-option-image-size, 28px);
3432
- height: var(--aia-option-image-size, 28px);
3431
+ width: var(--aia-option-image-size, 40px);
3432
+ height: var(--aia-option-image-size, 40px);
3433
3433
  margin-right: 0;
3434
3434
  }
3435
3435
 
@@ -3451,7 +3451,7 @@
3451
3451
  .aia-content-T-Qba:has(.aia-checkbox-KGRhg) {
3452
3452
  display: flex;
3453
3453
  align-items: center;
3454
- gap: 7px;
3454
+ gap: 10px;
3455
3455
  }
3456
3456
 
3457
3457
  /* A checkbox row is a flex row, so its icon is a flex item beside the text,
@@ -3475,14 +3475,14 @@
3475
3475
  /* The mark is text centred in the box. An indent inherited from the row
3476
3476
  (an icon row hangs its text with one) would slide it out of the box. */
3477
3477
  text-indent: 0;
3478
- flex: 0 0 12.6px;
3479
- width: 12.6px;
3480
- height: 12.6px;
3478
+ flex: 0 0 18px;
3479
+ width: 18px;
3480
+ height: 18px;
3481
3481
  border: 1px solid var(--aia-border);
3482
- border-radius: 4.2px;
3482
+ border-radius: 6px;
3483
3483
  background: var(--aia-surface);
3484
3484
  color: transparent;
3485
- font-size: 7.7px;
3485
+ font-size: 11px;
3486
3486
  line-height: 1;
3487
3487
  }
3488
3488