@layer base, fonts, demo-container, select-shared, select-demo-one, select-demo-two;
:root {
  --select-bg-color-inactive: #efefef;
  --select-bg-color-hover: #fff;
  --select-bg-color-focus: #fff;
  --select-border-inactive: 2px solid #333;
  --select-border-hover: 2px solid #007eb5;
  --select-border-expanded: 2px solid #007eb5;
  --select-color-inactive: #999;
  --select-color-hover: #000;
  --select-drop-active-color: #fff;
  --select-drop-active-color-hover: #fff;
  --select-drop-active-bg-color: #007eb5;
  --select-drop-active-bg-color-hover: #007eb5;
  --select-drop-color: #333;
  --select-drop-color-hover: #007eb5;
  --select-drop-bg-color-hover: rgba(0, 126, 181, 0.1);
  --select-drop-bg-color: #ffffff;
  --arrow-color-inactive: #666;
  --arrow-color-hover: #007eb5;
  --arrow-color: #007eb5;
  --select-border-radius: 4px;
  --select-height: 36px;
  --font-family: "Roboto", sans-serif;
}
@layer select-demo-one {
  .demo-one {
    --default-demo-width: 100%;
    --default-min-width: 320px;
    --default-max-width: 400px;
    width: var(--default-demo-width);
    min-width: var(--default-min-width);
    max-width: var(--default-max-width);
  }
}
@layer select-demo-two {
  .demo-two {
    --default-demo-width: 100cqw;
    --default-min-width: 320px;
    --default-max-width: 1000px;
    width: var(--default-demo-width);
    min-width: var(--default-min-width);
    max-width: var(--default-max-width);
  }
}
@layer select-shared {
  .select {
    width: 100%;
    height: var(--select-height);
    margin: 0;
    padding: 0;
    cursor: pointer;
    font-family: var(--font-family);
    background-color: var(--select-bg-color-inactive);
  }
  .select:hover {
    background-color: var(--select-bg-color-hover);
  }
  .select:hover .select__label--placeholder {
    color: var(--select-color-hover);
  }
  .select > li {
    position: relative;
  }
  .select__expand {
    width: 0;
    height: var(--select-height);
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--select-bg-color-focus);
  }
  .select__expand:after {
    content: "\2770";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(-15px, -50%) rotate(270deg);
    color: var(--arrow-color-inactive);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 2;
    transition: all 250ms cubic-bezier(0.4, 0.25, 0.3, 1);
    font-weight: 900;
    font-size-adjust: 0.5;
  }
  .select__expand:hover:after {
    color: var(--arrow-color-hover);
  }
  .select__options {
    padding-left: 0;
  }
  .select__option {
    position: relative;
  }
  .select__option:hover .select__label {
    cursor: pointer;
  }
  .select__expand:hover:after {
    opacity: 1;
  }
  .select__expand:checked:after {
    transform: translate(-15px, -50%) rotate(90deg);
    color: var(--arrow-color);
  }
  .select__expand--label {
    display: block;
    width: 100%;
    height: var(--select-height);
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
  }
  .select__close {
    display: none;
  }
  .select__close--label {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: none;
  }
  .select__items {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border: var(--select-border-inactive);
    border-radius: var(--select-border-radius);
    padding-top: var(--select-height);
  }
  .select__items:hover {
    border: var(--select-border-hover);
  }
  .select__input {
    display: none;
  }
  .select__label {
    transition: all 250ms cubic-bezier(0.4, 0.25, 0.3, 1);
    display: block;
    height: 0;
    font-size: 1.1rem;
    line-height: 40px;
    overflow: hidden;
    cursor: pointer;
    padding-left: 20px;
  }
  .select__label a {
    color: var(--select-drop-color);
    text-decoration: none;
  }
  .select__label a:hover {
    text-decoration: none;
    color: var(--select-drop-color-hover);
  }
  .select__label--placeholder {
    height: var(--select-height);
    vertical-align: middle;
    position: absolute;
    top: 0;
    left: 0;
    background-color: transparent;
    color: var(--select-color-inactive);
  }
  .select__expand:checked + .select__close--label + .select__options .select__label {
    height: var(--select-height);
  }
  .select__expand:checked + .select__close--label + .select__options .select__label:hover {
    background-color: var(--select-drop-bg-color-hover);
  }
  .select__expand:checked + .select__close--label {
    display: block;
  }
  .select__expand:checked + .select__close--label + .select__options .select__label {
    background-color: var(--select-drop-bg-color);
  }
  .select__expand:checked + .select__close--label + .select__options .select__active .select__label {
    background-color: var(--select-drop-active-bg-color);
  }
  .select__expand:checked + .select__close--label + .select__options .select__active .select__label a {
    color: var(--select-drop-active-color);
  }
  .select__expand:checked + .select__close--label + .select__options .select__active .select__label:hover {
    background-color: var(--select-drop-active-bg-color-hover);
    color: var(--select-drop-color-focus);
  }
  .select__expand:checked + .select__close--label + .select__options + .select__expand--label {
    display: none;
  }
  .select__input:checked + .select__label {
    height: var(--select-height);
    margin-top: -var(--select-height);
  }
  li:has(input.select__expand[type="radio"]:checked) {
    border: var(--select-border-expanded);
    outline: 0;
    box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.075), 0 3px 8px rgba(102, 175, 233, 0.6);
  }
}
@layer demo-container {
  .demo-container {
    width: 90vw;
    height: min-content;
    display: flex;
    flex-direction: column;
    padding: 2em;
    margin: 2em 0 0 0;
    background-color: #fff;
    box-shadow: 0 8px 16px 0 rgba(36, 36, 36, 0.1);
    position: relative;
    border-radius: 8px;
    place-content: center center;
    container-type: size;
  }
}
@layer base {
  *,
  *:after,
  *:before {
    box-sizing: border-box;
  }
  html,
  body {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    -webkit-font-smoothing: antialiased;
  }
  body {
    font-size: 16px;
    display: flex;
    align-items: center;
    flex-direction: column;
    font-family: var(--font-family);
  }
  strong {
    font-weight: bolder;
  }
  ul li {
    list-style: none;
  }
}