/* Shared controls for the Longfill configurator and the aroma calculator. */
body#product :is(.vlc-combo__fields, .ac .ac-setting-pair) select:not(.ac-preset-picker) {
  height: 44px;
  border: 1px solid #bcc4ca;
  border-radius: 3px;
  line-height: 22px;
  white-space: nowrap;
}

body#product :is(.vlc-combo__fields, .ac .ac-setting-pair) select:not(.ac-preset-picker):disabled {
  border-color: #d5dadd;
}

body#product :is(.vlc-combo__fields, .ac .ac-setting-pair) select:not(.ac-preset-picker):is(:focus, :open) {
  border-color: var(--vs-brand-accent, #00788e);
  outline: 0;
  outline-offset: 0;
  box-shadow: 0 0 0 1px var(--vs-brand-accent, #00788e);
}

@supports (appearance: base-select) and selector(select::picker(select)) {
  body#product :is(.vlc-combo__fields, .ac .ac-setting-pair) select,
  body#product :is(.vlc-combo__fields, .ac .ac-setting-pair) select::picker(select) {
    appearance: base-select;
  }

  body#product :is(.vlc-combo__fields, .ac .ac-setting-pair) select::picker-icon,
  body#product :is(.vlc-combo__fields, .ac .ac-setting-pair) option::checkmark {
    display: none;
  }

  body#product :is(.vlc-combo__fields, .ac .ac-setting-pair) select::picker(select) {
    max-block-size: min(360px, calc(100dvh - 160px));
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #bec6cb;
    border-radius: 2px;
    background: #fff;
    color: #20262b;
    box-shadow: 0 8px 24px rgb(23 26 29 / 10%);
    font-family: Inter, Arial, sans-serif;
  }

  body#product :is(.vlc-combo__fields, .ac .ac-setting-pair) option {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 2px;
    background: #fff;
    color: #20262b;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    white-space: normal;
  }

  body#product :is(.vlc-combo__fields, .ac .ac-setting-pair) option:where(:enabled):is(:checked, :focus, :focus-visible) {
    background: var(--vs-brand-accent, #00788e);
    color: #fff;
    font-weight: 600;
    outline: 0;
    outline-offset: 0;
    box-shadow: none;
  }

  @media (hover: hover) and (pointer: fine) {
    body#product :is(.vlc-combo__fields, .ac .ac-setting-pair) option:enabled:hover {
      background: var(--vs-brand-accent, #00788e);
      color: #fff;
      font-weight: 600;
      outline: 0;
      box-shadow: none;
    }
  }
}

