@layer recipes {
  [data-scope="date-picker"][data-part="table-cell-trigger"] {
    padding: 4px;
    border-radius: 4px;
    text-align: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  [data-scope="date-picker"][data-part="table-cell-trigger"]:hover {
    background: rgba(126, 126, 126, 0.171);
  }

  [data-scope="date-picker"][data-part="table-cell-trigger"][data-focus] {
    background: rgba(165, 151, 165, 0.085);
    color: var(--colors-text-primary-bold);
  }

  [data-scope="date-picker"][data-part="table-cell-trigger"][data-outside-range] {
    visibility: hidden;
  }

  [data-scope="date-picker"][data-part="table-cell-trigger"][data-selected] {
    background: var(--colors-text-primary-bold) !important;
    color: white !important ;
  }

  [data-scope="date-picker"][data-part="table-cell-trigger"][data-in-range]:not(
      [data-selected]
    ) {
    background: rgb(240, 219, 240);
  }

  [data-scope="date-picker"][data-part="control"] {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 16px;
  }

  [data-scope="date-picker"][data-part="table-cell-trigger"][data-today] {
    color: var(--colors-text-primary-bold);
  }

  [data-scope="date-picker"][data-part="table-cell-trigger"][data-unavailable] {
    text-decoration: line-through;
    opacity: 0.4;
  }

  [data-scope="date-picker"][data-part="table-cell-trigger"][data-disabled] {
    opacity: 0.4;
  }

  [data-scope="date-picker"][data-part="input"] {
    border-width: 1px;
    height: 2.5rem;
    padding-right: 1.25rem;
    padding-left: 0.75rem;
    background: var(--colors-bg-subtle);
    border-color: var(--colors-border-subtle);
  }

  [data-scope="date-picker"][data-part="trigger"] {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--colors-bg-subtle);
    min-width: 40px;
    border-width: 1px;
  }

  [data-scope="date-picker"][data-part="content"] {
    box-shadow:
      0 1px 3px 0 rgba(0, 0, 0, 0.1),
      0 1px 2px 0 rgba(0, 0, 0, 0.06);
    isolation: isolate;
    padding: 1rem;
    background: var(--colors-bg-subtle);
  }

  [data-scope="date-picker"][data-part="table"] {
    min-width: 240px;
    width: 100%;
    border-collapse: collapse;
  }

  [data-scope="date-picker"][data-part="view-trigger"] {
    border: 0;
    padding: 4px 20px;
    border-radius: 4px;
    flex: 1;
    &:hover {
      background: var(--colors-bg-bold);
    }
  }

  [data-scope="date-picker"]:is(
    [data-part="next-trigger"],
    [data-part="prev-trigger"]
  ) {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    &:hover {
      background: var(--colors-bg-bold);
    }
  }

  [data-scope="date-picker"][data-part="view-control"] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 10px;

    & svg {
      font-size: 1.5rem;
    }
  }
}
