@use '../../styles/Mixins' as *;

.selector {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.selector-main {
  @include accented-display(var(white));
  width: 100%;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  outline: none;
  gap: 8px;
  padding: 0.2rem 0.8rem;

  border: 1px solid var(--border-color);
  color: var(--options-text-color);

  svg {
    width: 1rem;
    height: 1rem;
    margin-top: 0.25rem;
  }
}

.selector-options {
  @include accented-display(var(--btn-primary-bg));
  width: 100%;
  padding: 0;
  display: grid;
  justify-self: center;
  position: absolute;
  cursor: pointer;
  top: 3rem;

  color: var(--options-text-color);
  background-color: var(--page-bg);
  border: 1px solid var(--border-color);

  border-radius: 0.6rem;

  @include mobile {
    bottom: 11.5rem;
  }

  .selector-option {
    display: flex;
    align-items: center;
    user-select: none;
    padding: 0.5rem 0.8rem;

    &:first-of-type {
      border-top-right-radius: 0.5rem;
      border-top-left-radius: 0.5rem;
    }

    &:last-of-type {
      border-bottom-left-radius: 0.5rem;
      border-bottom-right-radius: 0.5rem;
    }

    &:hover {
      background-color: var(--yellow-accent);
      color: var(--btn-text-hover-color);
    }
  }
}
