@use "../util" as *;
@use "../globals" as *;


.picker-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 85%;
    width: 85%;
    padding: 1rem;
    z-index: $dropdown-zindex;
    background-color: var(--bg-core-primary-light);
    border-radius: calc($border-radius-lg *2 );
    box-shadow: $base-box-shadow, 0 0 0 100vw rgba(0,0,0,.5);
}


@include breakpoint(sm) {
    .picker-container {
        position: absolute; 
        top: auto;
        left: auto;
        transform: none;
        margin-top: .5rem;
        max-width: 350px;
        width: 100%;
        box-shadow: $base-box-shadow;
    }
  }

#picker-header {
    padding: .5rem 1rem;
}

#picker-body {
    padding: 0 0.5rem 0.75rem;;
}


.picker-header-label {
    font-size: $font-size-sm;
    color: var(--text-core-lc);

}

.picker-header-title {
    font-size: 2rem;
}

.picker-divider {
    width: 100%;
    height: 0;
    margin: 0 0 .5rem 0;
    overflow: hidden;
    border-top: 1px solid var(--text-core-vc);
}

.picker-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem -0.75rem 0.75rem;

}

.picker-grid-col-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

.picker-grid-col-7 {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
  }
  

  .days{
    width: 2rem;
    height: 2rem;
    color: var(--text-core);
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color:transparent;
    font-size: .85rem;
    font-weight: 500;
    border-radius: 50%;
    // &:hover {
    //     background-color:var(--bg-core-primary);
    //     color: var(--text-core-hc);
    //   }
      &:focus-visible,
      &.focus {
        outline: 0;
        box-shadow: 0 0 0 0.15rem var(--bg-core-primary-lighten);
      }
      &:active,
      &.active {
        background-color:var(--bg-core-primary-dark);
        color: #fafafa;
      }
      &.current {
        background-color:transparent;
        color: var(--bg-core-primary-dark);
        border: 1px solid var(--bg-core-primary-dark);
      }
  }

  .item {
    min-width: 2rem;
    height: 2rem;
    display: inline-block;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    color: var(--text-core);
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color:transparent;
    border: 1px solid transparent;
    //padding: 0.3rem 1rem;
    font-size: .85rem;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 100vw;
    transition: all .15s ease-in-out;
    &:hover {
        background-color: var(--bg-core-primary);
      }
      &:focus-visible,
      &.focus {
        outline: 0;
        box-shadow: 0 0 0 0.15rem var(--bg-core-primary-lighten);
      }
      &:active,
      &.active {
        background-color: var(--bg-core-primary-dark);
        color: #fafafa;
      }
}