/* Options of a dish as one calm list in the popup (js/option-list.js), phones and desktop.
   Loaded only when the site setting "Options as a list" is on. Every rule is scoped to
   body.saigon-option-list and outranks the desktop tile styles in css/menu-desktop.css. */

body.saigon-option-list #food-modal-content:not(.lunch-special-active) table.variations select.has-saigon-buttons {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

body.saigon-option-list #food-modal-content:not(.lunch-special-active) table.variations td.value:has(> select.has-saigon-buttons)::after {
    display: none;
}

body.saigon-option-list #food-modal-content:not(.lunch-special-active) .saigon-variation-buttons.saigon-option-list {
    display: block;
}

body.saigon-option-list #food-modal-content:not(.lunch-special-active) .saigon-option-list .so-ol-group {
    margin: 16px 0 2px;
    font-weight: 700;
    color: var(--so-fg-0f172a, #0f172a);
}

body.saigon-option-list #food-modal-content:not(.lunch-special-active) .saigon-option-list .so-ol-group:first-child {
    margin-top: 4px;
}

body.saigon-option-list #food-modal-content:not(.lunch-special-active) .saigon-option-list .saigon-variation-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    min-height: 50px;
    padding: 12px 2px;
    border: 0;
    border-bottom: 1px solid var(--so-ln-e5e7eb, #e5e7eb);
    border-radius: 0;
    background: none;
    color: var(--so-fg-0f172a, #0f172a);
    font: inherit;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

body.saigon-option-list #food-modal-content:not(.lunch-special-active) .saigon-option-list .saigon-variation-button:last-child {
    border-bottom: 0;
}

body.saigon-option-list #food-modal-content:not(.lunch-special-active) .saigon-option-list .so-ol-ring {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 2px solid var(--so-ln-cbd5e1, #cbd5e1);
    border-radius: 50%;
}

body.saigon-option-list #food-modal-content:not(.lunch-special-active) .saigon-option-list .saigon-variation-button.is-selected {
    border-color: var(--so-ln-e5e7eb, #e5e7eb);
    background: none;
    font-weight: 700;
}

body.saigon-option-list #food-modal-content:not(.lunch-special-active) .saigon-option-list .saigon-variation-button.is-selected .so-ol-ring {
    border-color: var(--saigon-button-background, #c41e3a);
}

body.saigon-option-list #food-modal-content:not(.lunch-special-active) .saigon-option-list .saigon-variation-button.is-selected .so-ol-ring::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--saigon-button-background, #c41e3a);
}

body.saigon-option-list #food-modal-content:not(.lunch-special-active) .saigon-option-list .saigon-variation-button-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

body.saigon-option-list #food-modal-content:not(.lunch-special-active) .saigon-option-list .so-ol-num {
    color: var(--so-fg-64748b, #64748b);
    font-size: 0.8em;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

body.saigon-option-list #food-modal-content:not(.lunch-special-active) .saigon-option-list .saigon-variation-button-price {
    flex: 0 0 auto;
    color: var(--so-fg-64748b, #64748b);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

body.saigon-option-list #food-modal-content:not(.lunch-special-active) .saigon-option-list .saigon-variation-button:focus-visible {
    outline: 3px solid var(--so-ln-1f2937, #1f2937);
    outline-offset: 2px;
}

/* The running total on the add button, on phones too: "Toevoegen  € 27,95". */
body.saigon-option-list #food-modal-content:not(.lunch-special-active) .saigon-modal-add-total:not(:empty) {
    display: inline;
    margin-left: 0.5em;
    font-variant-numeric: tabular-nums;
}

body.saigon-option-list #food-modal-content:not(.lunch-special-active) .single_add_to_cart_button {
    white-space: nowrap;
}

@media (max-width: 420px) {
    body.saigon-option-list #food-modal-content:not(.lunch-special-active) .single_add_to_cart_button {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* Grouped lists carry their own headings, so the attribute label above them is double. */
body.saigon-option-list #food-modal-content:not(.lunch-special-active) table.variations tr:has(.so-ol-group) > th.label,
body.saigon-option-list #food-modal-content:not(.lunch-special-active) table.variations tr:has(.so-ol-group) > td.label {
    display: none;
}
