.recurrence-editor {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;

  &__card {
    background: var(--c--theme--colors--greyscale-50, #f8f9fa);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  &__summary {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: var(--c--theme--colors--primary-100, #e8f0fe);
    color: var(--c--theme--colors--primary-700, #1a56db);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
  }

  &__interval {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  &__weekdays {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  &__weekday-button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--c--theme--colors--greyscale-100, #f1f3f4);
    color: inherit;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.15s, color 0.15s;

    &:hover {
      background: var(--c--theme--colors--greyscale-200, #e8eaeb);
    }

    &--selected {
      background: var(--c--theme--colors--primary-600, #1a73e8);
      color: white;

      &:hover {
        background: var(--c--theme--colors--primary-700, #1557b0);
      }
    }
  }

  &__day-select {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  &__label {
    font-weight: 500;
    color: #333;
    font-size: 0.9375rem;
  }

  &__section-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--c--theme--colors--greyscale-500, #6b7280);
    letter-spacing: 0.05em;
  }

  &__end {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  &__end-options {
    display: flex;
    gap: 0.5rem;
  }

  &__end-btn {
    border: 1px solid var(--c--theme--colors--greyscale-300, #d1d5db);
    border-radius: 20px;
    padding: 0.375rem 0.75rem;
    background: transparent;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.15s;
    color: inherit;

    &:hover {
      border-color: var(--c--theme--colors--greyscale-400, #9ca3af);
    }

    &--active {
      border-color: var(--c--theme--colors--primary-600, #1a73e8);
      color: var(--c--theme--colors--primary-600, #1a73e8);
      background: var(--c--theme--colors--primary-50, #eff6ff);

      &:hover {
        border-color: var(--c--theme--colors--primary-700, #1557b0);
        color: var(--c--theme--colors--primary-700, #1557b0);
      }
    }
  }

  &__end-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  &__warning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    font-size: 0.875rem;
    line-height: 1.4;
  }
}
