/* customSkuSelectionComponent.css */

.customSelectInput {
  appearance: none;
}

.customSelectInput {
  box-shadow: var(--custom-field-inset-box-shadow) !important;
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  color: #287fdc !important;
  padding-block: 1em;
  border-radius: 0.5em;
  border: none;
  cursor: pointer;
  font-size: 1em;
  background: #fff;
}

/* The following CSS uses experimental features and SCSS-like nesting, 
   which might need pre-processing or modern browser support. 
   It is preserved as-is from the original component's style block. */
@supports (appearance: base-select) {
  .customSelectInput,
  .customSelectInput::picker(select) {
    appearance: base-select;
  }
  .customSelectInput {
    padding-inline: 10px;
    background-image: none;
  }
  .customSelectInput::picker-icon {
    content: "";
    width: 20px;
    height: 20px;
    rotate: 180deg;
    background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2220px%22%20height%3D%2220px%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M19%2015L12%209L5%2015%22%20stroke%3D%22%23818181%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");
    transition: rotate 0.2s ease-out;
  }
  .customSelectInput:open::picker-icon {
    rotate: 360deg;
  }
  .customSelectInput::picker(select) {
    padding: 0;
    position-anchor: --html;
    margin-top: 5px;
    border: none;
    background: #fff;
    border-radius: 0.5em 0.5em 0 0;
    bottom: 0;
    width: 100%;
    translate: 0 100dvh;
    transition: translate 0.5s ease-out, opacity 0.5s ease-out, overlay 0.5s,
      display 0.5s;

    transition-behavior: allow-discrete;
  }
  .customSelectInput:open::picker(select) {
    bottom: 0;
    width: 100%;
    translate: 0;
    opacity: 1;
    overflow: auto;
  }
  @starting-style {
    .customSelectInput:open::picker(select) {
      translate: 0 100dvh;
      opacity: 0;
      height: 0;
    }
  }
  .customSelectInput option {
    padding: 1em;
    cursor: pointer;
    transition-property: color, background;
    transition-duration: 0.25s;
    transition-timing-function: ease-out;
  }
  .customSelectInput option:where(:hover, :focus, :active) {
    background: #e8e8e8;
    color: #000;
  }
  .customSelectInput option:checked {
    background: #fff;
    color: #287fdc;
    box-shadow: var(--custom-field-inset-box-shadow);
  }
  .customSelectInput option::checkmark {
    display: none;
  }
}
