/* Shade the page only while a product dropdown is open. Shadows leave clicks alone. */
.new-product-page #product-content .np-select-options:not([hidden]) {
  box-shadow: 0 6px 14px #0001, 0 0 0 100vmax rgb(0 0 0 / 12%);
}

@media (min-width: 1000px) {
  .new-product-page #product-content :is(#menu-material-options, #folded-leaflet-paper-type-options) {
    max-height: none;
    overflow-y: visible;
    scroll-margin: 12px;
  }
}

/* Keep the original picker in browsers that cannot render a styled panel. */
@supports selector(select:open) and (not (appearance: base-select)) {
  :is(#product-content, #filterApp, .cards-configurator) select:open {
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 100vmax rgb(0 0 0 / 12%);
  }
}

@supports (appearance: base-select) and selector(::picker(select)) {
  :is(#product-content, #filterApp, .cards-configurator) select:not([multiple]) {
    appearance: base-select;
    background-image: none;
  }

  :is(#product-content, #filterApp, .cards-configurator) select:not([multiple])::picker(select) {
    appearance: base-select;
    margin-block: 2px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    color: #444;
    box-shadow: 0 6px 14px #0001, 0 0 0 100vmax rgb(0 0 0 / 12%);
  }

  :is(#product-content, #filterApp, .cards-configurator) select:not([multiple]) option {
    min-height: 48px;
    padding: 12px 16px;
    border-bottom: 1px solid #e1e1e1;
    font-size: 14px;
    cursor: pointer;
  }

  :is(#product-content, #filterApp, .cards-configurator) select:not([multiple]) option:last-child {
    border-bottom: 0;
  }

  :is(#product-content, #filterApp, .cards-configurator) select:not([multiple]) option:is(:hover, :focus-visible, :checked) {
    background: #e5f0f8;
  }
}
