/*
 * The look of the framework's UI pieces (views/components/Ui: buttons, cards, quantities, boxes), used by
 * the shop's pages, the configurator and a site's own pages alike. One markup for every site: what
 * changes between sites is these variables. A site sets the ones it wants in its input.css:
 *
 *     :root {
 *         --ui-control-radius: 9999px;   (pill buttons)
 *         --ui-control-case: none;       (no uppercase)
 *     }
 *
 * :where() gives these defaults no weight, so the site's values win whatever order the files load in.
 * The defaults are the shop's look; colours come from the theme (--color-accent, --color-accent-hover).
 */
:where(:root) {
    /* buttons, quantity steppers, icon buttons */
    --ui-control-radius: 1rem;
    --ui-control-case: uppercase;
    --ui-button-hover-bg: var(--color-accent-hover, var(--color-accent));
    --ui-button-hover-text: #fff;

    /* cards: a cart line, an option, a configured product */
    --ui-card-radius: 1rem;
    --ui-card-border: color-mix(in oklab, var(--color-accent) 50%, transparent);
    --ui-card-accent-width: 4px;
    --ui-card-accent-color: var(--color-accent);
    /* a shadow, never "none": it joins the rings in one box-shadow, and "none" there drops them too (0 0 #0000: no shadow) */
    --ui-card-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);

    /* tinted boxes: a summary, an empty state, a price */
    --ui-surface: #f9fafb;
    --ui-surface-radius: 1rem;

    /* the small uppercase labels: "Passo 2 di 4", a box's heading */
    --ui-eyebrow-color: color-mix(in oklab, currentcolor 55%, transparent);

    /* the fields of <x-form> (BaseFormField): text, numbers, dates, choices, files. The defaults are its plain look */
    --ui-field-bg: #fff;
    --ui-field-border: #d1d5db;
    --ui-field-radius: 0.25rem;
    /* a text area, a file box, a list of options */
    --ui-field-area-radius: 0.25rem;
    --ui-field-padding-x: 0.5rem;
    --ui-field-padding-y: 0.25rem;
    --ui-field-text: 0.875rem;
    --ui-field-focus: #3b82f6;
    --ui-field-ring: 1px;
    --ui-field-option-hover: #eff6ff;
    --ui-field-option-chosen: #dbeafe;
    --ui-field-check-size: 0.8125rem;
    --ui-field-label-size: 0.875rem;
    --ui-field-label-weight: 400;
    --ui-field-label-opacity: 0.75;
}
